'Setup the crawl and infrastructure consumer:
* Retrieve all plugins from the core,
* Create the consumer instance and more,'

def _setup_crawl_infrastructure(self):

    crawl_plugins = self._w3af_core.plugins.plugins['crawl']
    infrastructure_plugins = self._w3af_core.plugins.plugins['infrastructure']
    if (crawl_plugins or infrastructure_plugins):
        discovery_plugins = infrastructure_plugins
        discovery_plugins.extend(crawl_plugins)
        self._discovery_consumer = crawl_infrastructure(discovery_plugins, self._w3af_core, cf.cf.get('max_discovery_time'))
        self._discovery_consumer.start()
