We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d038da7 commit cc09426Copy full SHA for cc09426
http_cache.rst
@@ -80,6 +80,8 @@ but is a great way to start.
80
To enable the proxy, first create a caching kernel::
81
82
// src/CacheKernel.php
83
+ namespace App;
84
+
85
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
86
87
class CacheKernel extends HttpCache
@@ -93,6 +95,9 @@ caching kernel:
93
95
94
96
// public/index.php
97
98
+ use App\Kernel;
99
+ + use App\CacheKernel;
100
101
// ...
102
$kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev')));
103
0 commit comments