Class FooCommand
Base class for all commands.
-
Symfony\Component\Console\Command\Command
-
FooCommand
Methods summary
protected
|
#
configure( )
Configures the current command.
Configures the current command.
Overrides
|
protected
|
|
protected
null|integer
|
#
execute( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
Executes the current command.
Executes the current command.
This method is not abstract because you can use this class
as a concrete class. In this case, instead of defining the
execute() method, you set the code to execute by passing
a Closure to the setCode() method.
Parameters
- $input
- An InputInterface instance
- $output
- An OutputInterface instance
Returns
null|integer null or 0 if everything went fine, or an error code
Throws
LogicException When this abstract method is not implemented
See
Overrides
|
Methods inherited from Symfony\Component\Console\Command\Command
__construct(),
addArgument(),
addOption(),
addUsage(),
asText(),
asXml(),
getAliases(),
getApplication(),
getDefinition(),
getDescription(),
getHelp(),
getHelper(),
getHelperSet(),
getName(),
getNativeDefinition(),
getProcessedHelp(),
getSynopsis(),
getUsages(),
ignoreValidationErrors(),
initialize(),
isEnabled(),
mergeApplicationDefinition(),
run(),
setAliases(),
setApplication(),
setCode(),
setDefinition(),
setDescription(),
setHelp(),
setHelperSet(),
setName(),
setProcessTitle()
|