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

renderException(Exception $e, OutputInterface $output) Renders a caught exception. Parameters Exception $e An exception instance OutputInterface $output An OutputInterface instance

Application::register()

Command register(string $name) Registers a new command. Parameters string $name The command name Return Value Command The newly created command

Application::isAutoExitEnabled()

bool isAutoExitEnabled() Gets whether to automatically exit after a command execution or not. Return Value bool Whether to automatically exit after a command execution or not

Application::has()

bool has(string $name) Returns true if the command exists, false otherwise. Parameters string $name The command name or alias Return Value bool true if the command exists, false otherwise

Application::getVersion()

string getVersion() Gets the application version. Return Value string The application version

Application::getTerminalDimensions()

array getTerminalDimensions() Tries to figure out the terminal dimensions based on the current environment. Return Value array Array containing width and height

Application::getNamespaces()

string[] getNamespaces() Returns an array of all unique namespaces used by currently registered commands. It does not return the global namespace which always exists. Return Value string[] An array of namespaces

Application::getName()

string getName() Gets the name of the application. Return Value string The application name