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

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

ApplicationDescription::getCommand()

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

Application::setVersion()

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

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

int run(InputInterface $input = null, OutputInterface $output = null) Runs the current application. Parameters InputInterface $input An Input instance OutputInterface $output An Output instance Return Value int 0 if everything went fine, or an error code Exceptions Exception When doRun returns Exception

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