class EditCommands extends DrushCommands implements SiteAliasManagerAwareInterface (View source)

Traits

SiteAliasManagerAwareTrait
ProcessManagerAwareTrait
LoggerAwareTrait
IO
ConfigAwareTrait

Constants

REQ

OPT

EXIT_SUCCESS

EXIT_FAILURE

Methods

getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

No description

LoggerInterface
logger()

Returns a logger object.

io()

Override Robo's IO function with our custom style.

printFile(string $file)

Print the contents of a file.

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

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

from ExecTrait
static 
programExists($program)

No description

from ExecTrait
static 
getEditor()

No description

from ExecTrait
edit($filter = null)

Edit drushrc, site alias, and Drupal settings.php files.

load($headers = true)

No description

static 
phpIniFiles()

No description

bashFiles()

No description

static 
findBashrc($home)

Determine which .bashrc file is best to use on this platform.

complete()

No description

Details

DrushConfig getConfig()

Replaces same method in ConfigAwareTrait in order to provide a DrushConfig as return type. Helps with IDE completion.

__construct()

protected LoggerInterface logger()

Returns a logger object.

Return Value

LoggerInterface

protected io()

Override Robo's IO function with our custom style.

protected printFile(string $file)

Print the contents of a file.

Parameters

string $file Full path to a file.

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

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

$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
bool $port
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 programExists($program)

Parameters

$program

static getEditor()

edit($filter = null)

Edit drushrc, site alias, and Drupal settings.php files.

Parameters

$filter A substring for filtering the list of files. Omit this argument to choose from loaded files.

load($headers = true)

Parameters

$headers

static phpIniFiles()

bashFiles()

static findBashrc($home)

Determine which .bashrc file is best to use on this platform.

TODO: Also exists as InitCommands::findBashrc. Decide on class-based way to share code like this.

Parameters

$home

complete()