function GenerateProxyClassApplication::getDefinition

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php \Drupal\Core\Command\GenerateProxyClassApplication::getDefinition()
  2. 10 core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php \Drupal\Core\Command\GenerateProxyClassApplication::getDefinition()
  3. 11.x core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php \Drupal\Core\Command\GenerateProxyClassApplication::getDefinition()

Overridden so the application doesn't expect the command name as the first argument.

File

core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php, line 59

Class

GenerateProxyClassApplication
Provides a console command to generate proxy classes.

Namespace

Drupal\Core\Command

Code

public function getDefinition() {
    $definition = parent::getDefinition();
    // Clears the normal first argument (the command name).
    $definition->setArguments();
    return $definition;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.