Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 971a9779638c9c8ec1d93ed62fe8a1c4fbf74b90 1 parent d590450
David Frerich authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  book/routing.rst
2  book/routing.rst
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.