Documentation

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

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|null

prepareEnvironment()

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
InputDefinition

        
On this page

Search results