| @@ 36-47 (lines=12) @@ | ||
| 33 | /** |
|
| 34 | * {@inheritdoc} |
|
| 35 | */ |
|
| 36 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 37 | { |
|
| 38 | $this->init($input, $output, $input->getArgument('url')); |
|
| 39 | ||
| 40 | $this->initConfiguration( |
|
| 41 | $input->getOption('num_urls'), |
|
| 42 | $input->getOption('run_level'), |
|
| 43 | new Uri($input->getArgument('url')), |
|
| 44 | $this->eventDispatcher); |
|
| 45 | ||
| 46 | return $this->scan(); |
|
| 47 | } |
|
| 48 | ||
| 49 | /** |
|
| 50 | * Initializes the configuration. |
|
| @@ 34-46 (lines=13) @@ | ||
| 31 | /** |
|
| 32 | * {@inheritdoc} |
|
| 33 | */ |
|
| 34 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 35 | { |
|
| 36 | $this->init($input, $output, $input->getArgument('url')); |
|
| 37 | ||
| 38 | $this->initConfiguration( |
|
| 39 | new Uri($input->getArgument('url')), |
|
| 40 | $this->eventDispatcher); |
|
| 41 | ||
| 42 | $timeStrategy = $this->config->getExtension('_SmokeStop')->getStrategy('_TimeStop'); |
|
| 43 | $timeStrategy->init($input->getOption('duration')); |
|
| 44 | ||
| 45 | return $this->scan(); |
|
| 46 | } |
|
| 47 | ||
| 48 | /** |
|
| 49 | * Initializes the configuration. |
|