Drahak\Restful\Application\RouteListFactory::__construct PHP Method

__construct() public method

public __construct ( string $presentersRoot, boolean $autoRebuild, Nette\Caching\IStorage $cacheStorage, Drahak\Restful\Application\RouteAnnotation $routeAnnotation )
$presentersRoot string from where to find presenters
$autoRebuild boolean enable automatic rebuild of robot loader
$cacheStorage Nette\Caching\IStorage
$routeAnnotation Drahak\Restful\Application\RouteAnnotation
    public function __construct($presentersRoot, $autoRebuild, IStorage $cacheStorage, RouteAnnotation $routeAnnotation)
    {
        $loader = new RobotLoader();
        $loader->addDirectory($presentersRoot);
        $loader->setCacheStorage($cacheStorage);
        $loader->autoRebuild = $autoRebuild;
        $loader->tryLoad('Drahak\\Restful\\Application\\IResourcePresenter');
        $this->loader = $loader;
        $this->cacheStorage = $cacheStorage;
        $this->routeAnnotation = $routeAnnotation;
    }