Skip to content

Commit

Permalink
minor #6284 [Book] [Routing] Fix third param true to UrlGeneratorInte…
Browse files Browse the repository at this point in the history
…rface::ABSOLUTE_URI (eriwin)

This PR was merged into the 2.3 branch.

Discussion
----------

[Book] [Routing] Fix third param true to UrlGeneratorInterface::ABSOLUTE_URI

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | symfony/symfony#16991

This was forgotten in #6009

Commits
-------

ec53faa Updated third param true to UrlGeneratorInterface::ABSOLUTE_URl in text Generating Absolute URLs
  • Loading branch information
xabbuh committed Feb 17, 2016
2 parents 8e36327 + ec53faa commit 01d61d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1477,7 +1477,7 @@ Generating Absolute URLs
~~~~~~~~~~~~~~~~~~~~~~~~

By default, the router will generate relative URLs (e.g. ``/blog``). From
a controller, simply pass ``true`` to the third argument of the ``generateUrl()``
a controller, simply pass ``UrlGeneratorInterface::ABSOLUTE_URL`` to the third argument of the ``generateUrl()``
method::

use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
Expand Down

0 comments on commit 01d61d6

Please sign in to comment.