You are here

protected function GenerateProxyClassApplication::getDefaultCommands in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php \Drupal\Core\Command\GenerateProxyClassApplication::getDefaultCommands()

Gets the default commands that should always be available.

Return value

Command[] An array of default Command instances

Overrides Application::getDefaultCommands

File

core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php, line 48
Contains \Drupal\Core\Command\GenerateProxyClassApplication.

Class

GenerateProxyClassApplication
Provides a console command to generate proxy classes.

Namespace

Drupal\Core\Command

Code

protected function getDefaultCommands() {

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