Exemple #1
0
 /**
  * Get Cache Adapter
  *
  * @return \Zend\Cache\Storage\Adapter\AbstractAdapter
  */
 public function getCacheAdapter()
 {
     if (is_null($this->cacheAdapter)) {
         $session = new Session();
         $container = new Container();
         $session->getOptions()->setSessionContainer($container);
         $this->setCacheAdapter($session);
     }
     return $this->cacheAdapter;
 }
 /**
  * @param  ServiceLocatorInterface $serviceLocator
  * @return StorageInterface
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $storage = new Session();
     $storage->getOptions()->setSessionContainer(new Container('user_filter'));
     return $storage;
 }