protected function _before() { parent::_before(); $ioc = IoC::getInstance(); $ioc->registerServiceProviders([FilesystemServiceProvider::class, ConfigServiceProvider::class, CacheServiceProvider::class]); CacheHelper::setCacheDirectory($this->outputPath()); }
/** * Configure the cache * * @param Repository $config * @param string $cachePath */ protected function configureCache(Repository $config, $cachePath) { // Set the IoC's configuration instance $ioc = IoC::getInstance(); $ioc->container()['config'] = $config; // Set the cache directory CacheHelper::setCacheDirectory($cachePath); }