Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix service name
  • Loading branch information
iagomls committed Oct 24, 2015
commit af089f092de92c4f072723efa57ba58eeda0d5c6
2 changes: 1 addition & 1 deletion cookbook/controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ the original class does. To do it, add the service pointing to the controller
and set the arguments to load the specific needed services::

# app/config/services.yml
appbundle.twig.controller.exception:
app.twig.exception_controller:
class: AppBundle\Controller\ExceptionController
arguments: [@twig, %kernel.debug%]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both arguments must be enclosed by (single) quotes to be valid YAML. Can you also add examples for the XML and PHP configuration formats?

Copy link
Member

@xabbuh xabbuh May 21, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By the way, I think we should omit the service definition and instead use AppBundle:Exception:show in the examples below instead.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, my last comment was wrong. We still need to register the controller as a service to be able to inject the needed dependencies. So we need examples for the other formats.


Expand Down