src/Cli/Command/ScanCommand.php
private function initConfiguration($num_urls, $run_level, Uri $uri, Dispatcher $dispatcher)
    {
        $configArray = $this->getConfigArray(__DIR__ . '/../../settings/' . self::CONFIG_FILE);

        $config = new Configuration($uri, $dispatcher, $configArray);

        $crawler = $config->getExtension('_ResponseRetriever')->getRetriever();
        $crawler->setStartPage($uri);

        $config->getExtension('_SmokeStop')->getStrategy('_CountStop')->init($num_urls);
        $config->getExtension('_ProgressBar')->setMax($num_urls);

        $config->getExtension('_SmokeRunLevel')->setRunLevel($run_level);

        $this->config = $config;
    }
private function initConfiguration($num_urls, $run_level, Uri $uri, Dispatcher $dispatcher)
    {
        $configArray = $this->getConfigArray(__DIR__ . '/../../settings/' . self::CONFIG_FILE);

        $config = new Configuration($uri, $dispatcher, $configArray);

        $crawler = $config->getExtension('_ResponseRetriever')->getRetriever();
        $crawler->setStartPage($uri);

        $config->getExtension('_SmokeStop')->getStrategy('_CountStop')->init($num_urls);
        $config->getExtension('_ProgressBar')->setMax($num_urls);

        $config->getExtension('_SmokeRunLevel')->setRunLevel($run_level);

        $this->config = $config;
    }
Initializes the configuration.

@return Configuration