class Runtime (View source)

Control the Drush runtime environment

  • Preflight
  • Symfony application run
  • Bootstrap
  • Command execution
  • Termination

Constants

DRUSH_RUNTIME_COMPLETED_NAMESPACE

DRUSH_RUNTIME_EXIT_CODE_NAMESPACE

Properties

protected Preflight $preflight
protected DependencyInjection $di

Methods

__construct(Preflight $preflight, DependencyInjection $di)

Runtime constructor

run($argv)

Run the application, catching any errors that may be thrown.

doRun($argv, $output)

Start up Drush

static 
setCompleted()

Mark the current request as having completed successfully.

static 
setExitCode(int $code) deprecated

No description

static 
exitCode() deprecated

No description

Details

__construct(Preflight $preflight, DependencyInjection $di)

Runtime constructor

Parameters

Preflight $preflight
DependencyInjection $di

run($argv)

Run the application, catching any errors that may be thrown.

Typically, this will happen only for code that fails fast during preflight. Later code should catch and handle its own exceptions.

Parameters

$argv

protected doRun($argv, $output)

Start up Drush

Parameters

$argv
$output

static setCompleted()

Mark the current request as having completed successfully.

static setExitCode(int $code) deprecated

deprecated Used by backend.inc Mark the exit code for current request.

Parameters

int $code

static exitCode() deprecated

deprecated Used by backend.inc Get the exit code for current request.