From b796c61f5852728e1fc57ce3e975db988c93a734 Mon Sep 17 00:00:00 2001 From: Daniel Rotter Date: Mon, 23 Apr 2018 20:26:09 +0200 Subject: [PATCH] Fix controller references in ESI docs --- http_cache/esi.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http_cache/esi.rst b/http_cache/esi.rst index 888c0d445aa..1d60ea68ec4 100644 --- a/http_cache/esi.rst +++ b/http_cache/esi.rst @@ -127,7 +127,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags: {# templates/static/about.html.twig #} {# you can use a controller reference #} - {{ render_esi(controller('App\Controller\NewsController::latest', { 'maxPerPage': 5 })) }} + {{ render_esi(controller('App\\Controller\\NewsController::latest', { 'maxPerPage': 5 })) }} {# ... or a URL #} {{ render_esi(url('latest_news', { 'maxPerPage': 5 })) }} @@ -139,7 +139,7 @@ matter), Symfony uses the standard ``render`` helper to configure ESI tags: render( new Symfony\Component\HttpKernel\Controller\ControllerReference( - 'App\Controller\NewsController::latest', + 'App\\Controller\\NewsController::latest', array('maxPerPage' => 5) ), array('strategy' => 'esi')