You are here

protected function ListCommand::configure in Devel 4.x

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

File

webprofiler/src/Command/ListCommand.php, line 28

Class

ListCommand
Class ListCommand.

Namespace

Drupal\webprofiler\Command

Code

protected function configure() {
  $this
    ->setName('webprofiler:list')
    ->setDescription($this
    ->trans('commands.webprofiler.list.description'))
    ->addOption('ip', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.webprofiler.list.options.ip'), NULL)
    ->addOption('url', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.webprofiler.list.options.url'), NULL)
    ->addOption('method', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.webprofiler.list.options.method'), NULL)
    ->addOption('limit', NULL, InputOption::VALUE_REQUIRED, $this
    ->trans('commands.webprofiler.list.options.limit'), 10);
}