GenerateProxyClassApplication.php in Drupal 10
File
core/lib/Drupal/Core/Command/GenerateProxyClassApplication.php
View source
<?php
namespace Drupal\Core\Command;
use Drupal\Component\ProxyBuilder\ProxyBuilder;
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\InputDefinition;
use Symfony\Component\Console\Input\InputInterface;
class GenerateProxyClassApplication extends Application {
protected $proxyBuilder;
public function __construct(ProxyBuilder $proxy_builder) {
$this->proxyBuilder = $proxy_builder;
parent::__construct();
}
protected function getCommandName(InputInterface $input) : ?string {
return 'generate-proxy-class';
}
protected function getDefaultCommands() : array {
$default_commands = parent::getDefaultCommands();
$default_commands[] = new GenerateProxyClassCommand($this->proxyBuilder);
return $default_commands;
}
public function getDefinition() : InputDefinition {
$definition = parent::getDefinition();
$definition
->setArguments();
return $definition;
}
}