function GenerateProxyClassCommand::configure
Same name in other branches
- 9 core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php \Drupal\Core\Command\GenerateProxyClassCommand::configure()
- 8.9.x core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php \Drupal\Core\Command\GenerateProxyClassCommand::configure()
- 11.x core/lib/Drupal/Core/Command/GenerateProxyClassCommand.php \Drupal\Core\Command\GenerateProxyClassCommand::configure()
File
-
core/
lib/ Drupal/ Core/ Command/ GenerateProxyClassCommand.php, line 41
Class
- GenerateProxyClassCommand
- Provides a console command to generate proxy classes.
Namespace
Drupal\Core\CommandCode
protected function configure() {
$this->setName('generate-proxy-class')
->setDefinition([
new InputArgument('class_name', InputArgument::REQUIRED, 'The class to be proxied'),
new InputArgument('namespace_root_path', InputArgument::REQUIRED, 'The filepath to the root of the namespace.'),
])
->setDescription('Dumps a generated proxy class into its appropriate namespace.')
->addUsage('\'Drupal\\Core\\Batch\\BatchStorage\' "core/lib/Drupal/Core"')
->addUsage('\'Drupal\\block\\BlockRepository\' "core/modules/block/src"')
->addUsage('\'Drupal\\my_module\\MyClass\' "modules/contrib/my_module/src"');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.