Class Environment
Environment is responsible for creating necessary objects and conditions for Peridot to run. It creates the event emitter, input definition, and includes user configuration from the Peridot configuration file.
- Peridot\Console\Environment uses Peridot\Core\HasEventEmitterTrait
public
|
#
__construct(
|
public
boolean
|
|
public
|
#
getDefinition( )
Return the InputDefinition used to define the available Peridot options and arguments |
protected
boolean
|
|
protected
|
|
protected
boolean
|
#
includeConfiguration( $configuration )
Include the configuration file used to setup the peridot environment |
protected
boolean
|
|
protected
|
#
initializeContext(
Initialize the Context with the same event emitter as the Environment. |
getEventEmitter(),
setEventEmitter()
|
protected
|
$definition
|
|
protected
array
|
$options
Environment options |
$eventEmitter
|