Commit 563023c7 authored by Fabien Potencier's avatar Fabien Potencier

fixed bad merge

parent 69b47da9
...@@ -66,14 +66,7 @@ In any Twig template, the ``app`` variable refers to the Application object. ...@@ -66,14 +66,7 @@ In any Twig template, the ``app`` variable refers to the Application object.
So you can access any services from within your view. For example to access So you can access any services from within your view. For example to access
``$app['request']->getHost()``, just put this in your template: ``$app['request']->getHost()``, just put this in your template:
<<<<<<< HEAD
.. code-block:: jinja .. code-block:: jinja
=======
The TwigServiceProvider also registers the application as a global
named ``app``. So you can access any services from within your
view. For example to access ``$app['request']->getHost()``,
just put this in your template:
>>>>>>> renamed *Provider classes to *ServiceProvider
{{ app.request.host }} {{ app.request.host }}
...@@ -84,7 +77,7 @@ from a template: ...@@ -84,7 +77,7 @@ from a template:
{{ render('/sidebar') }} {{ render('/sidebar') }}
{# or if you are also using UrlGeneratorExtension #} {# or if you are also using UrlGeneratorServiceProvider #}
{{ render(path('sidebar')) }} {{ render(path('sidebar')) }}
For more information, check out the `Twig documentation For more information, check out the `Twig documentation
......
...@@ -158,7 +158,7 @@ It is pretty straightforward. ...@@ -158,7 +158,7 @@ It is pretty straightforward.
.. note:: .. note::
There is a `SwiftmailerExtension <extensions/swiftmailer>` included There is a `SwiftmailerServiceProvider <providers/swiftmailer>` included
that you can use instead of ``mail()``. that you can use instead of ``mail()``.
The current ``request`` is automatically injected by Silex to the Closure The current ``request`` is automatically injected by Silex to the Closure
......
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