PHP Class Contao\CoreBundle\Command\AutomatorCommand

Inheritance: extends AbstractLockedCommand, use trait Contao\CoreBundle\Framework\FrameworkAwareTrait
Show file Open project: contao/core-bundle Class Usage Examples

Public Methods

Method Description
__toString ( ) : string Returns the help text.

Protected Methods

Method Description
configure ( )
executeLocked ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )

Private Methods

Method Description
generateCommandMap ( ) : array Generates the command map from the Automator class.
getCommands ( ) : array Returns a list of available commands.
getTaskFromInput ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : string | null Returns the task name from the argument list or via an interactive dialog.
runAutomator ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Runs the Automator.

Method Details

__toString() public method

By using the __toString() method, we ensure that the help text is lazy loaded at a time where the autoloader is available (required by $this->getCommands()).
public __toString ( ) : string
return string

configure() protected method

protected configure ( )

executeLocked() protected method

protected executeLocked ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface