/** * 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())); }
/** * @return StoreInterface */ protected function createStore() { return new Store($this->cacheDir ? $this->cacheDir : $this->kernel->getCacheDir() . '/http_cache', $this->options['cache_cookies']); }
/** * @return StoreInterface */ protected function createStore() { return new Store($this->cacheDir ? $this->cacheDir : $this->kernel->getCacheDir() . '/http_cache'); }