Application::setVersion()

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

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::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::setDispatcher()

setDispatcher(EventDispatcherInterface $dispatcher) Parameters EventDispatcherInterface $dispatcher

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::setDefaultCommand()

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

Application::setAutoExit()

setAutoExit(bool $boolean) Sets whether to automatically exit after a command execution or not. Parameters bool $boolean Whether to automatically exit after a command execution or not

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