Commit 1f1fc4e6 authored by Fabien Potencier's avatar Fabien Potencier

merged branch niklasf/patch-1 (PR #763)

This PR was merged into the master branch.

Discussion
----------

Make clear that twig-bridge is required to use path and url in Twig

Not sure what the best way is to make this explicit, but twig-bridge is required to use path() and url() in Twig. Just having Twig alone is not enough.

Commits
-------

956a2768 Make clear that twig-bridge is required to use path and url in Twig
parents d18adaff 956a2768
......@@ -54,7 +54,7 @@ When using Twig, the service can be used like this:
{{ app.url_generator.generate('homepage') }}
Moreover, if you use Twig, you will have access to the ``path()`` and
Moreover, if you have ``twig-bridge`` in your ``composer.json``, you will have access to the ``path()`` and
``url()`` functions:
.. code-block:: jinja
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment