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

Breadcrumb

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

function DebugCommand::configure

Same name in this branch
  1. 11.1.x vendor/symfony/serializer/Command/DebugCommand.php \Symfony\Component\Serializer\Command\DebugCommand::configure()

Overrides Command::configure

File

vendor/symfony/validator/Command/DebugCommand.php, line 47

Class

DebugCommand
A console command to debug Validators information.

Namespace

Symfony\Component\Validator\Command

Code

protected function configure() : void {
    $this->addArgument('class', InputArgument::REQUIRED, 'A fully qualified class name or a path')
        ->addOption('show-all', null, InputOption::VALUE_NONE, 'Show all classes even if they have no validation constraints')
        ->setHelp(<<<'EOF'
The <info>%command.name% 'App\Entity\Dummy'</info> command dumps the validators for the dummy class.

The <info>%command.name% src/</info> command dumps the validators for the `src` directory.
EOF
);
}
RSS feed
Powered by Drupal