You are here

protected function BenchmarkCommand::configure in Devel 8.2

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

File

webprofiler/src/Command/BenchmarkCommand.php, line 34

Class

BenchmarkCommand
Class BenchmarkCommand

Namespace

Drupal\webprofiler\Command

Code

protected function configure() {
  $this
    ->setName('webprofiler:benchmark')
    ->setDescription($this
    ->trans('commands.webprofiler.benchmark.description'))
    ->addArgument('url', InputArgument::REQUIRED, $this
    ->trans('commands.webprofiler.benchmark.arguments.url'))
    ->addOption('runs', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.webprofiler.benchmark.options.runs'), 100)
    ->addOption('file', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.webprofiler.benchmark.options.file'))
    ->addOption('cache-rebuild', 'cr', InputOption::VALUE_NONE, $this
    ->trans('commands.webprofiler.benchmark.options.cache_rebuild'));
}