Skip to content

Commit 58c6948

Browse files
committed
Fix configuring cache control expression language for Symfony Container
1 parent 30d0afc commit 58c6948

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DependencyInjection/FOSHttpCacheExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ private function parseResponseMatcher(ContainerBuilder $container, array $config
261261
$childDefinition = (new ChildDefinition('fos_http_cache.response_matcher.cache_control.expression'))
262262
->setArgument(0, $config['match_response'])
263263
;
264-
if (!empty($config['match_response_expression_service'])) {
265-
$childDefinition->replaceArgument(1, new Reference($config['match_response_expression_service']));
264+
if (!empty($config['expression_language'])) {
265+
$childDefinition->setArgument(1, new Reference($config['expression_language']));
266266
}
267267
$container
268268
->setDefinition($id, $childDefinition)

0 commit comments

Comments
 (0)