diff --git a/http_cache.rst b/http_cache.rst index 68542dc5238..c98b03ff708 100644 --- a/http_cache.rst +++ b/http_cache.rst @@ -80,6 +80,8 @@ but is a great way to start. To enable the proxy, first create a caching kernel:: // src/CacheKernel.php + namespace App; + use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache; class CacheKernel extends HttpCache @@ -93,6 +95,9 @@ caching kernel: // public/index.php + use App\Kernel; + + use App\CacheKernel; + // ... $kernel = new Kernel($_SERVER['APP_ENV'] ?? 'dev', $_SERVER['APP_DEBUG'] ?? ('prod' !== ($_SERVER['APP_ENV'] ?? 'dev')));