You are here

protected function ExportCommand::configure in Devel 4.x

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Command/ExportCommand.php \Drupal\webprofiler\Command\ExportCommand::configure()
  2. 8 webprofiler/src/Command/ExportCommand.php \Drupal\webprofiler\Command\ExportCommand::configure()
  3. 8.2 webprofiler/src/Command/ExportCommand.php \Drupal\webprofiler\Command\ExportCommand::configure()

File

webprofiler/src/Command/ExportCommand.php, line 36

Class

ExportCommand
Class ExportCommand.

Namespace

Drupal\webprofiler\Command

Code

protected function configure() {
  $this
    ->setName('webprofiler:export')
    ->setDescription($this
    ->trans('commands.webprofiler.export.description'))
    ->addArgument('id', InputArgument::OPTIONAL, $this
    ->trans('commands.webprofiler.export.arguments.id'))
    ->addOption('directory', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.webprofiler.export.options.directory'), '/tmp');
}