Exemplo n.º 1
0
 /**
  * @return void
  * @throws InvalidBackendException
  */
 public function initializeObject()
 {
     if (!$this->metaDataCache->getBackend() instanceof IterableBackendInterface) {
         throw new InvalidBackendException(sprintf('The session meta data cache must provide a backend implementing the IterableBackendInterface, but the given backend "%s" does not implement it.', get_class($this->metaDataCache->getBackend())), 1370964557);
     }
     if (!$this->storageCache->getBackend() instanceof IterableBackendInterface) {
         throw new InvalidBackendException(sprintf('The session storage cache must provide a backend implementing the IterableBackendInterface, but the given backend "%s" does not implement it.', get_class($this->storageCache->getBackend())), 1370964558);
     }
 }
Exemplo n.º 2
0
 /**
  * @return boolean
  */
 protected function hasFrozenCacheInProduction()
 {
     return $this->environment->getContext()->isProduction() && $this->reflectionDataRuntimeCache->getBackend()->isFrozen();
 }