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

Methods

__construct(Preflight $preflight, DependencyInjection $di)

No description

int
run($argv)

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

int
doRun($argv, $output)

Start up Drush

static void
setCompleted()

Mark the current request as having completed successfully.

static void
setExitCode(int $code) deprecated

Mark the exit code for current request.

static 
exitCode() deprecated

Get the exit code for current request.

Details

__construct(Preflight $preflight, DependencyInjection $di)

No description

Parameters

Preflight $preflight
DependencyInjection $di

int 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

Return Value

int

protected int doRun($argv, $output)

Start up Drush

Parameters

$argv
$output

Return Value

int

static void setCompleted()

Mark the current request as having completed successfully.

Return Value

void

static void setExitCode(int $code) deprecated

deprecated Was used by backend.inc

Mark the exit code for current request.

Parameters

int $code

Return Value

void

static exitCode() deprecated

deprecated Was used by backend.inc

Get the exit code for current request.