PHP Class Yosymfony\Spress\Plugin\Environment\SymfonyCommandEnvironment

Author: Victor Puertas ([email protected])
Inheritance: implements Yosymfony\Spress\Plugin\Environment\CommandEnvironmentInterface
Show file Open project: spress/spress Class Usage Examples

Protected Properties

Property Type Description
$output
$symfonyCommand

Public Methods

Method Description
__construct ( Command $symfonyCommand, Symfony\Component\Console\Output\OutputInterface $output ) Constructor.
hasCommand ( $name )
runCommand ( $commandName, array $arguments )

Protected Methods

Method Description
getSymfonyConsoleApplication ( ) : Symfony\Component\Console\Application Gets the Symfony Console application.

Method Details

__construct() public method

Constructor.
public __construct ( Command $symfonyCommand, Symfony\Component\Console\Output\OutputInterface $output )
$symfonyCommand Symfony\Component\Console\Command\Command The Symfony Console command
$output Symfony\Component\Console\Output\OutputInterface The output

getSymfonyConsoleApplication() protected method

Gets the Symfony Console application.
protected getSymfonyConsoleApplication ( ) : Symfony\Component\Console\Application
return Symfony\Component\Console\Application The Symfony Console application

hasCommand() public method

public hasCommand ( $name )

runCommand() public method

public runCommand ( $commandName, array $arguments )
$arguments array

Property Details

$output protected property

protected $output

$symfonyCommand protected property

protected $symfonyCommand