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

Breadcrumb

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

function Application::has

Returns true if the command exists, false otherwise.

4 calls to Application::has()
Application::all in vendor/symfony/console/Application.php
Gets the commands (registered in the given namespace if provided).
Application::doRun in vendor/composer/composer/src/Composer/Console/Application.php
Runs the current application.
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.

File

vendor/symfony/console/Application.php, line 604

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

public function has(string $name) : bool {
    $this->init();
    return isset($this->commands[$name]) || $this->commandLoader?->has($name) && $this->add($this->commandLoader
        ->get($name));
}

API Navigation

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