function GenerateProxyClassApplication::getDefaultCommands

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

File

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

Class

GenerateProxyClassApplication
Provides a console command to generate proxy classes.

Namespace

Drupal\Core\Command

Code

protected function getDefaultCommands() : array {
    // Even though this is a single command, keep the HelpCommand (--help).
    $default_commands = parent::getDefaultCommands();
    $default_commands[] = new GenerateProxyClassCommand($this->proxyBuilder);
    return $default_commands;
}

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