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

Breadcrumb

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

function Application::getDefinition

Gets the InputDefinition related to this Application.

5 calls to Application::getDefinition()
Application::doRun in vendor/symfony/console/Application.php
Runs the current application.
DbDumpApplication::getDefinition in core/lib/Drupal/Core/Command/DbDumpApplication.php
Overridden so the application doesn't expect the command name as the first argument.
DbDumpApplication::getDefinition in core/lib/Drupal/Core/Command/DbDumpApplication.php
Overridden so the application doesn't expect the command name as the first argument.
GenerateProxyClassApplication::getDefinition in core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
Overridden so the application doesn't expect the command name as the first argument.
GenerateProxyClassApplication::getDefinition in core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
Overridden so the application doesn't expect the command name as the first argument.
2 methods override Application::getDefinition()
DbDumpApplication::getDefinition in core/lib/Drupal/Core/Command/DbDumpApplication.php
Overridden so the application doesn't expect the command name as the first argument.
GenerateProxyClassApplication::getDefinition in core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
Overridden so the application doesn't expect the command name as the first argument.

File

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

Class

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

Namespace

Symfony\Component\Console

Code

public function getDefinition() : InputDefinition {
    $this->definition ??= $this->getDefaultInputDefinition();
    if ($this->singleCommand) {
        $inputDefinition = $this->definition;
        $inputDefinition->setArguments();
        return $inputDefinition;
    }
    return $this->definition;
}

API Navigation

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