PHP Class Yosymfony\Spress\Plugin\ConsoleCommandBuilder

Author: Victor Puertas ([email protected])
Show file Open project: spress/spress Class Usage Examples

Protected Properties

Property Type Description
$pluginManager

Public Methods

Method Description
__construct ( PluginManager $pluginManager ) Constructor.
buildCommands ( ) : Command[] Gets a list of Symfony Console command.

Protected Methods

Method Description
buildCommand ( Yosymfony\Spress\Plugin\CommandPluginInterface $commandPlugin ) : Command Build a Symfony Console commands.
isValidCommandPlugin ( Yosymfony\Spress\Core\Plugin\PluginInterface $plugin ) : boolean Is a valid command plugin?

Method Details

__construct() public method

Constructor.
public __construct ( PluginManager $pluginManager )
$pluginManager Yosymfony\Spress\Core\Plugin\PluginManager

buildCommand() protected method

Build a Symfony Console commands.
protected buildCommand ( Yosymfony\Spress\Plugin\CommandPluginInterface $commandPlugin ) : Command
$commandPlugin Yosymfony\Spress\Plugin\CommandPluginInterface
return Symfony\Component\Console\Command\Command Symfony Console command

buildCommands() public method

Gets a list of Symfony Console command.
public buildCommands ( ) : Command[]
return Symfony\Component\Console\Command\Command[] Symfony Console commands

isValidCommandPlugin() protected method

Is a valid command plugin?
protected isValidCommandPlugin ( Yosymfony\Spress\Core\Plugin\PluginInterface $plugin ) : boolean
$plugin Yosymfony\Spress\Core\Plugin\PluginInterface
return boolean

Property Details

$pluginManager protected property

protected $pluginManager