/** * 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); }
/** * Returns instance of a cache repository * * @return Repository */ public function makeCache() { return CacheHelper::make(); }
/** * Returns instance of a cache repository * * @return \Illuminate\Contracts\Cache\Repository */ function scaffold_cache() { return CacheHelper::make(); }
protected function _after() { $this->destroyIoC(); CacheHelper::destroy(); parent::_after(); }