Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
S
Silex
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
common
Silex
Commits
b355becd
Commit
b355becd
authored
Jun 13, 2012
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed references to the symfony bridge extension
parent
4d80d4e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
doc/providers.rst
doc/providers.rst
+0
-1
doc/providers/url_generator.rst
doc/providers/url_generator.rst
+2
-5
No files found.
doc/providers.rst
View file @
b355becd
...
@@ -53,7 +53,6 @@ the ``Silex\Provider`` namespace:
...
@@ -53,7 +53,6 @@ the ``Silex\Provider`` namespace:
* :doc:`MonologServiceProvider <providers/monolog>`
* :doc:`MonologServiceProvider <providers/monolog>`
* :doc:`SessionServiceProvider <providers/session>`
* :doc:`SessionServiceProvider <providers/session>`
* :doc:`SwiftmailerServiceProvider <providers/swiftmailer>`
* :doc:`SwiftmailerServiceProvider <providers/swiftmailer>`
* :doc:`SymfonyBridgesServiceProvider <providers/symfony_bridges>`
* :doc:`TwigServiceProvider <providers/twig>`
* :doc:`TwigServiceProvider <providers/twig>`
* :doc:`TranslationServiceProvider <providers/translation>`
* :doc:`TranslationServiceProvider <providers/translation>`
* :doc:`UrlGeneratorServiceProvider <providers/url_generator>`
* :doc:`UrlGeneratorServiceProvider <providers/url_generator>`
...
...
doc/providers/url_generator.rst
View file @
b355becd
...
@@ -54,13 +54,10 @@ When using Twig, the service can be used like this:
...
@@ -54,13 +54,10 @@ When using Twig, the service can be used like this:
{{ app.url_generator.generate('homepage') }}
{{ app.url_generator.generate('homepage') }}
Moreover, if you
register the ``SymfonyBridgesServiceProvider``, then you will
Moreover, if you
use Twig, you will have access to the ``path()`` and
have access to the ``path()`` and
``url()`` functions:
``url()`` functions:
.. code-block:: jinja
.. code-block:: jinja
{{ path('homepage') }}
{{ path('homepage') }}
{{ url('homepage') }} {# generates the absolute url http://example.org/ #}
{{ url('homepage') }} {# generates the absolute url http://example.org/ #}
You can find more information about this subject in the :doc:`Symfony bridges
documentation <symfony_bridges>`.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment