Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand
Command.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class ContainerAwareCommand
extends Command
implements
ContainerAwareInterface
{
- // members
- private ContainerInterface|null $container;
- // methods
- protected ContainerInterface getContainer()
- public void setContainer()
- // Inherited methods from Command
- public void __construct()
- public void ignoreValidationErrors()
- public void setApplication()
- public void setHelperSet()
- public HelperSet getHelperSet()
- public Application getApplication()
- public Boolean isEnabled()
- protected void configure()
- protected null|integer execute()
- protected void interact()
- protected void initialize()
- public integer run()
- public Command setCode()
- public void mergeApplicationDefinition()
- public Command setDefinition()
- public InputDefinition getDefinition()
- public InputDefinition getNativeDefinition()
- public Command addArgument()
- public Command addOption()
- public Command setName()
- public string getName()
- public Command setDescription()
- public string getDescription()
- public Command setHelp()
- public string getHelp()
- public string getProcessedHelp()
- public Command setAliases()
- public array getAliases()
- public string getSynopsis()
- public mixed getHelper()
- public string asText()
- public DOMDocument asXml()
Hierarchy
Extends
Extended by
- Symfony\Bundle\SwiftmailerBundle\Command\SendEmailCommand
- Symfony\Bundle\FrameworkBundle\Command\RouterApacheDumperCommand
- Symfony\Bundle\FrameworkBundle\Command\RouterMatchCommand
- Symfony\Bundle\FrameworkBundle\Command\ConfigDumpReferenceCommand
- Symfony\Bundle\FrameworkBundle\Command\CacheClearCommand
- Symfony\Bundle\FrameworkBundle\Command\ServerRunCommand
- Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand
- Symfony\Bundle\FrameworkBundle\Command\ContainerDebugCommand
- Symfony\Bundle\FrameworkBundle\Command\TranslationUpdateCommand
- Symfony\Bundle\FrameworkBundle\Command\RouterDebugCommand
- Symfony\Bundle\FrameworkBundle\Command\CacheWarmupCommand
- Symfony\Bundle\TwigBundle\Command\LintCommand
- Symfony\Bundle\SecurityBundle\Command\InitAclCommand
- Symfony\Bundle\AsseticBundle\Command\DumpCommand
- Doctrine\Bundle\DoctrineBundle\Command\CreateDatabaseDoctrineCommand
- Doctrine\Bundle\DoctrineBundle\Command\ImportMappingDoctrineCommand
- Doctrine\Bundle\DoctrineBundle\Command\DropDatabaseDoctrineCommand
- Doctrine\Bundle\DoctrineBundle\Command\DoctrineCommand
- Doctrine\Bundle\DoctrineBundle\Command\GenerateEntitiesDoctrineCommand
- Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineCommand
- Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineEntityCommand
- Sensio\Bundle\GeneratorBundle\Command\GenerateBundleCommand
- Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineFormCommand
- Sensio\Bundle\GeneratorBundle\Command\GenerateControllerCommand
- Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineCrudCommand
- Sensio\Bundle\GeneratorBundle\Command\GeneratorCommand
Implements
Members
private
Methods
protected
public
- setContainer() — {@inheritdoc}
Inherited from Symfony\Component\Console\Command\Command
protected
- configure() — Configures the current command.
- execute() — Executes the current command.
- initialize() — Initializes the command just after the input has been validated.
- interact() — Interacts with the user.
public
- addArgument() — Adds an argument.
- addOption() — Adds an option.
- asText() — Returns a text representation of the command.
- asXml() — Returns an XML representation of the command.
- getAliases() — Returns the aliases for the command.
- getApplication() — Gets the application instance for this command.
- getDefinition() — Gets the InputDefinition attached to this Command.
- getDescription() — Returns the description for the command.
- getHelp() — Returns the help for the command.
- getHelper() — Gets a helper instance by name.
- getHelperSet() — Gets the helper set.
- getName() — Returns the command name.
- getNativeDefinition() — Gets the InputDefinition to be used to create XML and Text representations of this Command.
- getProcessedHelp() — Returns the processed help for the command replacing the %command.name% and %command.full_name% patterns with the real values dynamically.
- getSynopsis() — Returns the synopsis for the command.
- ignoreValidationErrors() — Ignores validation errors.
- isEnabled() — Checks whether the command is enabled or not in the current environment
- mergeApplicationDefinition() — Merges the application definition with the command definition.
- run() — Runs the command.
- setAliases() — Sets the aliases for the command.
- setApplication() — Sets the application instance for this command.
- setCode() — Sets the code to execute when running this command.
- setDefinition() — Sets an array of argument and option instances.
- setDescription() — Sets the description for the command.
- setHelp() — Sets the help for the command.
- setHelperSet() — Sets the helper set.
- setName() — Sets the name of the command.