Permalink
Browse files

Corrention of wrong code example.

The request service is not available in Commandline (CLI) - You cannot create a service ("request") of an inactive scope
  • Loading branch information...
1 parent d590450 commit 971a9779638c9c8ec1d93ed62fe8a1c4fbf74b90 @cdfre committed Jun 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 book/routing.rst
View
2 book/routing.rst
@@ -1129,7 +1129,7 @@ method:
.. code-block:: php
- $request->headers->set('HOST', 'www.example.com');
+ $router->getContext()->setHost('www.example.com');
.. index::
single: Routing; Generating URLs in a template

0 comments on commit 971a977

Please sign in to comment.