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

Application::setDefinition()

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

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

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

Application::renderException()

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

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

string getLongVersion() Returns the long version of the application. Return Value string The long application version

Application::getName()

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