Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Application.php

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\Console

Code

private function init() : void {
    if ($this->initialized) {
        return;
    }
    $this->initialized = true;
    foreach ($this->getDefaultCommands() as $command) {
        $this->add($command);
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal