function Application::init
5 calls to Application::init()
- Application::add in vendor/
symfony/ console/ Application.php - Adds a command object.
- Application::all in vendor/
symfony/ console/ Application.php - Gets the commands (registered in the given namespace if provided).
- Application::find in vendor/
symfony/ console/ Application.php - Finds a command by name or alias.
- Application::get in vendor/
symfony/ console/ Application.php - Returns a registered command by name or alias.
- Application::has in vendor/
symfony/ console/ Application.php - Returns true if the command exists, false otherwise.
File
-
vendor/
symfony/ console/ Application.php, line 1319
Class
- Application
- An Application is the container for a collection of commands.
Namespace
Symfony\Component\ConsoleCode
private function init() : void {
if ($this->initialized) {
return;
}
$this->initialized = true;
foreach ($this->getDefaultCommands() as $command) {
$this->add($command);
}
}