From 7ae2f9409fcd17bd4f5b425551772c299959c94a Mon Sep 17 00:00:00 2001 From: HypeMC Date: Sun, 26 Feb 2023 03:19:25 +0100 Subject: [PATCH] [HttpCache] Inject $env in example --- http_cache.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_cache.rst b/http_cache.rst index 949e95acf4e..3a2d6c1b427 100644 --- a/http_cache.rst +++ b/http_cache.rst @@ -114,7 +114,7 @@ Use the ``framework.http_cache`` option to enable the proxy for the // config/packages/framework.php use Symfony\Config\FrameworkConfig; - return static function (FrameworkConfig $framework) use ($env) { + return static function (FrameworkConfig $framework, string $env) { if ('prod' === $env) { $framework->httpCache()->enabled(true); }