ApplicationDescription::getCommand()

Command getCommand(string $name) Parameters string $name Return Value Command Exceptions CommandNotFoundException

ApplicationDescription

class ApplicationDescription Constants GLOBAL_NAMESPACE Methods __construct(Application $application, string|null $namespace = null) Constructor. array getNamespaces() Command[] getCommands() Command getCommand(string $name) Details __construct(Application $application, string|null $namespace = null) Constructor. Parameters Application $application string|null $namespace array getNamespac

Application::setVersion()

setVersion(string $version) Sets the application version. Parameters string $version The application version

Application::setTerminalDimensions()

Application setTerminalDimensions(int $width, int $height) Sets terminal dimensions. Can be useful to force terminal dimensions for functional tests. Parameters int $width The width int $height The height Return Value Application The current application

Application::setName()

setName(string $name) Sets the application name. Parameters string $name The application name

Application::setHelperSet()

setHelperSet(HelperSet $helperSet) Set a helper set to be used with the command. Parameters HelperSet $helperSet The helper set

Application::setDispatcher()

setDispatcher(EventDispatcherInterface $dispatcher) Parameters EventDispatcherInterface $dispatcher

Application::setDefinition()

setDefinition(InputDefinition $definition) Set an input definition to be used with this application. Parameters InputDefinition $definition The input definition

Application::setDefaultCommand()

setDefaultCommand(string $commandName) Sets the default Command name. Parameters string $commandName The Command name

Application::setCatchExceptions()

setCatchExceptions(bool $boolean) Sets whether to catch exceptions or not during commands execution. Parameters bool $boolean Whether to catch exceptions or not during commands execution