Skip to content

Commit ea50dc7

Browse files
committed
minor #17969 [HttpCache] Inject $env in example (HypeMC)
This PR was merged into the 6.2 branch. Discussion ---------- [HttpCache] Inject `$env` in example A sort of followup to #17639, IMO makes the example a bit clearer. Commits ------- 7ae2f94 [HttpCache] Inject $env in example
2 parents 7a82890 + 7ae2f94 commit ea50dc7

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)