<?php

namespace Mini\Model\TypeCrawler;

use \Mini\Model\TypeCrawler\Storage\StorageFactory;
//TODO do this right
use \Mini\Model\TypeCrawler\ModBot;

class TypeCrawlerController {
    /** @var array */
    private $crawlers;
    /** @var StorageFactory */
    private $storage;

    function __construct(StorageFactory $storageFactory) {
        $this->crawlers = array();
        $this->storage = $storageFactory;

        $this->registerCrawler('ModBot');
    }

    public function registerCrawler(string $crawler) {
        $this->crawlers[] = new $crawler($this->storage->getStorage($crawler::$type));
    }

    public function triggerCrawl(): array {
        $ret = array();
        foreach($this->crawlers as $crawler) {
            $ret = array_merge($ret, $crawler->crawl());
        }
    }
}

<?php

namespace Mini\Model\TypeCrawler;

use \Mini\Model\TypeCrawler\Storage\StorageFactory;

class TypeCrawlerController {
    /** @var array */
    private $crawlers;
    /** @var StorageFactory */
    private $storage;

    function __construct(StorageFactory $storageFactory) {
        $this->crawlers = array();
        $this->storage = $storageFactory;

        $this->registerCrawler('ModBot');
    }

    public function registerCrawler(string $crawler) {
        $this->crawlers[] = new $crawler($this->storage->getStorage($crawler::$type));
    }

    public function triggerCrawl(): array {
        $ret = array();
        foreach($this->crawlers as $crawler) {
            $ret = array_merge($ret, $crawler->crawl());
        }
    }
}

--- 
+++ 
@@ -3,6 +3,8 @@
 namespace Mini\Model\TypeCrawler;
 
 use \Mini\Model\TypeCrawler\Storage\StorageFactory;
+//TODO do this right
+use \Mini\Model\TypeCrawler\ModBot;
 
 class TypeCrawlerController {
     /** @var array */
Make the thing work, for now
