Runtime
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
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
static
Details
__construct(Preflight $preflight, DependencyInjection $di)
No description
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.
protected int
doRun($argv, $output)
Start up Drush
static void
setCompleted()
Mark the current request as having completed successfully.
static void
setExitCode(int $code)
deprecated
deprecated
Mark the exit code for current request.
static
exitCode()
deprecated
deprecated
Get the exit code for current request.