$this->cacheDir =
$cache;
} if (null ===
$options &&
$kernel->
isDebug()) { $this->options =
['debug' => true
];
} if ($this->options
['debug'
] ?? false
) { $this->options +=
['stale_if_error' => 0
];
} parent::
__construct($kernel,
$this->
createStore(),
$this->
createSurrogate(),
array_merge($this->options,
$this->
getOptions()));
} protected function forward(Request
$request, bool
$catch = false, Response
$entry = null
): Response
{ $this->
getKernel()->
boot();
$this->
getKernel()->
getContainer()->
set('cache',
$this);
return parent::
forward($request,
$catch,
$entry);
} /**
* Returns an array of options to customize the Cache configuration.
*/