From 859db205d5ddf73698af9d3d10d49cd3a645ae60 Mon Sep 17 00:00:00 2001 From: Andrey Astakhov Date: Sun, 6 Mar 2016 22:26:40 +0100 Subject: [PATCH 1/2] Fixed yaml configuration of app.exception_controller Fixed yaml code-block for app.exception_controller service: indented lines with 'class' and 'arguments' configuration to make this example functional. --- cookbook/controller/error_pages.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/controller/error_pages.rst b/cookbook/controller/error_pages.rst index eeb20da4afe..4e8dc29201d 100644 --- a/cookbook/controller/error_pages.rst +++ b/cookbook/controller/error_pages.rst @@ -233,8 +233,8 @@ In that case, you might want to override one or both of the ``showAction()`` and # app/config/services.yml services: app.exception_controller: - class: AppBundle\Controller\CustomExceptionController - arguments: ['@twig', '%kernel.debug%'] + class: AppBundle\Controller\CustomExceptionController + arguments: ['@twig', '%kernel.debug%'] .. code-block:: xml From 96f97dbb493177cf542c9d9c48a089420cc70a64 Mon Sep 17 00:00:00 2001 From: Andrey Astakhov Date: Mon, 7 Mar 2016 22:46:01 +0100 Subject: [PATCH 2/2] Changed indentation to 4 spaces As were mentioned in the comment changed indentation of yaml code-block to use four spaces. --- cookbook/controller/error_pages.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbook/controller/error_pages.rst b/cookbook/controller/error_pages.rst index 4e8dc29201d..e92f53bb711 100644 --- a/cookbook/controller/error_pages.rst +++ b/cookbook/controller/error_pages.rst @@ -233,8 +233,8 @@ In that case, you might want to override one or both of the ``showAction()`` and # app/config/services.yml services: app.exception_controller: - class: AppBundle\Controller\CustomExceptionController - arguments: ['@twig', '%kernel.debug%'] + class: AppBundle\Controller\CustomExceptionController + arguments: ['@twig', '%kernel.debug%'] .. code-block:: xml