Skip to content
Snippets Groups Projects
Commit f1bf6e94 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Since all it can contain is optional, the 'assets' and 'cache' can be just as optional

parent 8bd8e3f4
No related branches found
No related tags found
No related merge requests found
...@@ -328,8 +328,8 @@ class Module ...@@ -328,8 +328,8 @@ class Module
} }
$assetConfig = $config->getConfigItem('assets'); $assetConfig = $config->getOptionalConfigItem('assets', []);
$cacheConfig = $assetConfig->getConfigItem('caching'); $cacheConfig = $assetConfig->getOptionalConfigItem('caching', []);
$response = new BinaryFileResponse($path); $response = new BinaryFileResponse($path);
$response->setCache([ $response->setCache([
// "public" allows response caching even if the request was authenticated, // "public" allows response caching even if the request was authenticated,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment