PluginApplication
extends Application
in package
Class PluginApplication
Table of Contents
Properties
- $environment : string|null
- $initialized : bool
- $language : string|null
- $pluginName : string|null
Methods
- __construct() : mixed
- PluginApplication constructor.
- getCommandName() : string|null
- getPluginName() : string
- prepareEnvironment() : void
- run() : int
- setPluginName() : 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
$pluginName
protected
string|null
$pluginName
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|nullgetPluginName()
public
getPluginName() : string
Return values
stringprepareEnvironment()
public
prepareEnvironment(ConsoleCommandEvent $event) : void
Parameters
- $event : ConsoleCommandEvent
run()
public
run([InputInterface|null $input = null ][, OutputInterface|null $output = null ]) : int
Parameters
- $input : InputInterface|null = null
- $output : OutputInterface|null = null
Tags
Return values
intsetPluginName()
public
setPluginName(string $pluginName) : void
Parameters
- $pluginName : string
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