Skip to content

Commit 30d0afc

Browse files
adamwojsalongosz
authored andcommitted
Fix configuring cache control expression for Symfony Container
1 parent a452810 commit 30d0afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DependencyInjection/FOSHttpCacheExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ private function parseResponseMatcher(ContainerBuilder $container, array $config
259259
$id = 'fos_http_cache.cache_control.expression.'.md5($config['match_response']);
260260
if (!$container->hasDefinition($id)) {
261261
$childDefinition = (new ChildDefinition('fos_http_cache.response_matcher.cache_control.expression'))
262-
->replaceArgument(0, $config['match_response'])
262+
->setArgument(0, $config['match_response'])
263263
;
264264
if (!empty($config['match_response_expression_service'])) {
265265
$childDefinition->replaceArgument(1, new Reference($config['match_response_expression_service']));

0 commit comments

Comments
 (0)