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\CommandCode
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
);
}