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

Breadcrumb

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

function ServerDumpCommand::configure

Overrides Command::configure

File

vendor/symfony/var-dumper/Command/ServerDumpCommand.php, line 56

Class

ServerDumpCommand
Starts a dump server to collect and output dumps on a single place with multiple formats support.

Namespace

Symfony\Component\VarDumper\Command

Code

protected function configure() : void {
    $this->addOption('format', null, InputOption::VALUE_REQUIRED, \sprintf('The output format (%s)', implode(', ', $this->getAvailableFormats())), 'cli')
        ->setHelp(<<<'EOF'
<info>%command.name%</info> starts a dump server that collects and displays
dumps in a single place for debugging you application:

  <info>php %command.full_name%</info>

You can consult dumped data in HTML format in your browser by providing the <comment>--format=html</comment> option
and redirecting the output to a file:

  <info>php %command.full_name% --format="html" > dump.html</info>

EOF
);
}
RSS feed
Powered by Drupal