Make sure trace_level is always defined
This commit is contained in:
parent
5196254801
commit
b80e9b8474
@ -98,8 +98,8 @@ class HttpCache implements HttpKernelInterface, TerminableInterface
|
|||||||
'trace_header' => 'X-Symfony-Cache',
|
'trace_header' => 'X-Symfony-Cache',
|
||||||
], $options);
|
], $options);
|
||||||
|
|
||||||
if (!isset($options['trace_level']) && $this->options['debug']) {
|
if (!isset($options['trace_level'])) {
|
||||||
$this->options['trace_level'] = 'full';
|
$this->options['trace_level'] = $this->options['debug'] ? 'full' : 'none';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user