Пример #1
0
    /**
     * Constructor.
     *
     * @param HttpKernelInterface $kernel An HttpKernelInterface instance
     */
    public function __construct(HttpKernelInterface $kernel)
    {
        $store = new Store($kernel->getCacheDir().'/http_cache');
        $esi = new Esi();

        parent::__construct($kernel, $store, $esi, array_merge(array('debug' => $kernel->isDebug()), $this->getOptions()));
    }
Пример #2
0
 /**
  * @return StoreInterface
  */
 protected function createStore()
 {
     return new Store($this->cacheDir ? $this->cacheDir : $this->kernel->getCacheDir() . '/http_cache', $this->options['cache_cookies']);
 }
Пример #3
0
 /**
  * @return StoreInterface
  */
 protected function createStore()
 {
     return new Store($this->cacheDir ? $this->cacheDir : $this->kernel->getCacheDir() . '/http_cache');
 }