Exemplo n.º 1
0
 /**
  * Create a new cache repository with the given implementation.
  *
  * @param  \Illuminate\Contracts\Cache\Store  $store
  * @return \Simexis\Cache\Repository
  */
 public function repository(Store $store)
 {
     $repository = new Repository($store);
     if ($this->app->bound('Illuminate\\Contracts\\Events\\Dispatcher')) {
         $repository->setEventDispatcher($this->app['Illuminate\\Contracts\\Events\\Dispatcher']);
     }
     return $repository;
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 protected function fireCacheEvent($event, $payload)
 {
     $payload[] = $this->tags->getNames();
     parent::fireCacheEvent($event, $payload);
 }