final class RsyncCommand extends Command (View source)

Traits

A copy of \Drupal\Core\DependencyInjection\AutowireTrait with first params' type hint changed.

Constants

NAME

These are arguments after the aliases and paths have been evaluated.

Properties

protected $uri from  ExecTrait
protected BackendPathEvaluator $pathEvaluator

Methods

static 
create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

bool
startBrowser(string|null $uri = null, int $sleep = 0, int|null $port = null, string|bool $browser = false)

Starts a background browser/tab for the current site or a specified URL.

static bool
programExists($program)

No description

static string
getEditor(string|null $editor = null)

No description

__construct(DrushConfig $drushConfig, ProcessManager $processManager, SiteAliasManagerInterface $siteAliasManager)

No description

void
configure()

No description

int
execute(InputInterface $input, OutputInterface $output)

No description

string
rsyncOptions($options, OutputInterface $output)

No description

injectAliasPathParameterOptions($input, $parameterName)

No description

Details

static create(ContainerInterface $container)

Instantiates a new instance of the implementing class using autowiring.

Parameters

ContainerInterface $container

The service container this instance should use.

bool startBrowser(string|null $uri = null, int $sleep = 0, int|null $port = null, string|bool $browser = false)

Starts a background browser/tab for the current site or a specified URL.

Uses a non-blocking Process call, so Drush execution will continue.

Parameters

string|null $uri

Optional URI or site path to open in browser. If omitted, or if a site path is specified, the current site home page uri will be prepended if the site's hostname resolves.

int $sleep
int|null $port
string|bool $browser

Return Value

bool

TRUE if browser was opened. FALSE if browser was disabled by the user or a default browser could not be found.

static bool programExists($program)

No description

Parameters

$program

Return Value

bool

static string getEditor(string|null $editor = null)

No description

Parameters

string|null $editor

Return Value

string

__construct(DrushConfig $drushConfig, ProcessManager $processManager, SiteAliasManagerInterface $siteAliasManager)

No description

Parameters

DrushConfig $drushConfig
ProcessManager $processManager
SiteAliasManagerInterface $siteAliasManager

void configure()

No description

Return Value

void

protected int execute(InputInterface $input, OutputInterface $output)

No description

Parameters

InputInterface $input
OutputInterface $output

Return Value

int

string rsyncOptions($options, OutputInterface $output)

No description

Parameters

$options
OutputInterface $output

Return Value

string

protected injectAliasPathParameterOptions($input, $parameterName)

No description

Parameters

$input
$parameterName