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