class CacheWarmupCommand extends ContainerAwareCommand
Warmup the cache.
__construct(string|null $name = null) Constructor. | from Command | |
ignoreValidationErrors() Ignores validation errors. | from Command | |
setApplication(Application $application = null) Sets the application instance for this command. | from Command | |
setHelperSet(HelperSet $helperSet) Sets the helper set. | from Command | |
HelperSet | getHelperSet() Gets the helper set. | from Command |
Application | getApplication() Gets the application instance for this command. | from Command |
bool | isEnabled() Checks whether the command is enabled or not in the current environment. | from Command |
int | run(InputInterface $input, OutputInterface $output) Runs the command. | from Command |
Command | setCode(callable $code) Sets the code to execute when running this command. | from Command |
mergeApplicationDefinition(bool $mergeArgs = true) Merges the application definition with the command definition. | from Command | |
Command | setDefinition(array|InputDefinition $definition) Sets an array of argument and option instances. | from Command |
InputDefinition | getDefinition() Gets the InputDefinition attached to this Command. | from Command |
InputDefinition | getNativeDefinition() Gets the InputDefinition to be used to create representations of this Command. | from Command |
Command | addArgument(string $name, int $mode = null, string $description = '', mixed $default = null) Adds an argument. | from Command |
Command | addOption(string $name, string $shortcut = null, int $mode = null, string $description = '', mixed $default = null) Adds an option. | from Command |
Command | setName(string $name) Sets the name of the command. | from Command |
Command | setProcessTitle(string $title) Sets the process title of the command. | from Command |
string | getName() Returns the command name. | from Command |
Command | setDescription(string $description) Sets the description for the command. | from Command |
string | getDescription() Returns the description for the command. | from Command |
Command | setHelp(string $help) Sets the help for the command. | from Command |
string | getHelp() Returns the help for the command. | from Command |
string | getProcessedHelp() Returns the processed help for the command replacing the %command.name% and %command.full_name% patterns with the real values dynamically. | from Command |
Command | setAliases(string[] $aliases) Sets the aliases for the command. | from Command |
array | getAliases() Returns the aliases for the command. | from Command |
string | getSynopsis(bool $short = false) Returns the synopsis for the command. | from Command |
addUsage(string $usage) Add a command usage example. | from Command | |
array | getUsages() Returns alternative usages of the command. | from Command |
mixed | getHelper(string $name) Gets a helper instance by name. | from Command |
setContainer(ContainerInterface $container = null) Sets the container. | from ContainerAwareCommand |
Constructor.
Ignores validation errors.
This is mainly useful for the help command.
Sets the application instance for this command.
Sets the helper set.
Gets the helper set.
Gets the application instance for this command.
Checks whether the command is enabled or not in the current environment.
Override this to check for x or y and return false if the command can not run properly under the current conditions.
Runs the command.
The code to execute is either defined directly with the setCode() method or by overriding the execute() method in a sub-class.
Sets the code to execute when running this command.
If this method is used, it overrides the code defined in the execute() method.
Merges the application definition with the command definition.
This method is not part of public API and should not be used directly.
Sets an array of argument and option instances.
Gets the InputDefinition attached to this Command.
Gets the InputDefinition to be used to create representations of this Command.
Can be overridden to provide the original command representation when it would otherwise be changed by merging with the application InputDefinition.
This method is not part of public API and should not be used directly.
Adds an argument.
Adds an option.
Sets the name of the command.
This method can set both the namespace and the name if you separate them by a colon (:)
$command->setName('foo:bar');
Sets the process title of the command.
This feature should be used only when creating a long process command, like a daemon.
PHP 5.5+ or the proctitle PECL library is required
Returns the command name.
Sets the description for the command.
Returns the description for the command.
Sets the help for the command.
Returns the help for the command.
Returns the processed help for the command replacing the %command.name% and %command.full_name% patterns with the real values dynamically.
Sets the aliases for the command.
Returns the aliases for the command.
Returns the synopsis for the command.
Add a command usage example.
Returns alternative usages of the command.
Gets a helper instance by name.
Sets the container.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.html