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

Breadcrumb

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

function GenerateProxyClassApplication::getDefaultCommands

Overrides Application::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;
}
RSS feed
Powered by Drupal