Skip to content

Commit 7ae2f94

Browse files
committed
[HttpCache] Inject $env in example
1 parent 2f96fa3 commit 7ae2f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Use the ``framework.http_cache`` option to enable the proxy for the
114114
// config/packages/framework.php
115115
use Symfony\Config\FrameworkConfig;
116116
117-
return static function (FrameworkConfig $framework) use ($env) {
117+
return static function (FrameworkConfig $framework, string $env) {
118118
if ('prod' === $env) {
119119
$framework->httpCache()->enabled(true);
120120
}

0 commit comments

Comments
 (0)