GravApplication
extends Application
in package
Class GravApplication
Table of Contents
Properties
- $environment : string|null
- $initialized : bool
- $language : string|null
Methods
- __construct() : mixed
- PluginApplication constructor.
- getCommandName() : string|null
- prepareEnvironment() : void
- configureIO() : void
- getDefaultInputDefinition() : InputDefinition
- Add global --env and --lang options.
- init() : void
Properties
$environment
protected
string|null
$environment
$initialized
protected
bool
$initialized
= false
$language
protected
string|null
$language
Methods
__construct()
PluginApplication constructor.
public
__construct([string $name = 'UNKNOWN' ][, string $version = 'UNKNOWN' ]) : mixed
Parameters
- $name : string = 'UNKNOWN'
- $version : string = 'UNKNOWN'
getCommandName()
public
getCommandName(InputInterface $input) : string|null
Parameters
- $input : InputInterface
Return values
string|nullprepareEnvironment()
public
prepareEnvironment(ConsoleCommandEvent $event) : void
Parameters
- $event : ConsoleCommandEvent
configureIO()
protected
configureIO(InputInterface $input, OutputInterface $output) : void
Parameters
- $input : InputInterface
- $output : OutputInterface
getDefaultInputDefinition()
Add global --env and --lang options.
protected
getDefaultInputDefinition() : InputDefinition
Return values
InputDefinitioninit()
protected
init() : void