function ListCommand::configure

File

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

Class

ListCommand
Class ListCommand * @DrupalCommand ( extension="webprofiler", extensionType="module" )

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