public function __construct(Repository $cache, Dispatcher $events, $cacheDir) { $this->cache = $cache; $this->events = $events; $this->cacheDir = $cacheDir; }