Commit 19dd1c4d authored by Fabien Potencier's avatar Fabien Potencier

fixed doc markup

parent 675a4c8e
...@@ -3,8 +3,8 @@ Providers ...@@ -3,8 +3,8 @@ Providers
Providers allow the developer to reuse parts of an application into another Providers allow the developer to reuse parts of an application into another
one. Silex provides two types of providers defined by two interfaces: one. Silex provides two types of providers defined by two interfaces:
`ServiceProviderInterface` for services and `ControllerProviderInterface` for ``ServiceProviderInterface`` for services and ``ControllerProviderInterface``
controllers. for controllers.
Service Providers Service Providers
----------------- -----------------
...@@ -146,7 +146,7 @@ controllers under a path:: ...@@ -146,7 +146,7 @@ controllers under a path::
$app->mount('/blog', new Acme\BlogControllerProvider()); $app->mount('/blog', new Acme\BlogControllerProvider());
All controllers defined by the provider will now be available under the All controllers defined by the provider will now be available under the
`/blog` path. ``/blog`` path.
Creating a provider Creating a provider
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~
......
...@@ -43,7 +43,7 @@ setting Response HTTP cache headers:: ...@@ -43,7 +43,7 @@ setting Response HTTP cache headers::
.. tip:: .. tip::
If you want Silex to trust the `X-Forwarded-For*` headers from your If you want Silex to trust the ``X-Forwarded-For*`` headers from your
reverse proxy, you will need to run your application like this:: reverse proxy, you will need to run your application like this::
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
...@@ -52,7 +52,7 @@ setting Response HTTP cache headers:: ...@@ -52,7 +52,7 @@ setting Response HTTP cache headers::
$app->run(); $app->run();
This provider allows you to use the Symfony2 reverse proxy natively with This provider allows you to use the Symfony2 reverse proxy natively with
Silex applications by using the `http_cache` service:: Silex applications by using the ``http_cache`` service::
$app['http_cache']->run(); $app['http_cache']->run();
......
...@@ -211,14 +211,14 @@ don't want to mess with most of them. ...@@ -211,14 +211,14 @@ don't want to mess with most of them.
the request that is used by the Router and the UrlGenerator. the request that is used by the Router and the UrlGenerator.
* **exception_handler**: The Exception handler is the default handler that is * **exception_handler**: The Exception handler is the default handler that is
used when you don't register one via the `error()` method or if your handler used when you don't register one via the ``error()`` method or if your handler
does not return a Response. Disable it with does not return a Response. Disable it with
`unset($app['exception_handler'])`. ``unset($app['exception_handler'])``.
* **logger**: A * **logger**: A
`LoggerInterface `LoggerInterface
<http://api.symfony.com/master/Symfony/Component/HttpKernel/Log/LoggerInterface.html>`_ <http://api.symfony.com/master/Symfony/Component/HttpKernel/Log/LoggerInterface.html>`_
instance. By default, logging is disabled as the value is set to `null`. instance. By default, logging is disabled as the value is set to ``null``.
When the Symfony2 Monolog bridge is installed, Monolog is automatically used When the Symfony2 Monolog bridge is installed, Monolog is automatically used
as the default logger. as the default logger.
......
...@@ -602,9 +602,9 @@ round-trip to the browser (as for a redirect), use an internal sub-request:: ...@@ -602,9 +602,9 @@ round-trip to the browser (as for a redirect), use an internal sub-request::
.. tip:: .. tip::
If you are using ``UrlGeneratorProvider``, you can also generate the URI:: If you are using ``UrlGeneratorProvider``, you can also generate the URI::
$request = Request::create($app['url_generator']->generate('hello'), 'GET'); $request = Request::create($app['url_generator']->generate('hello'), 'GET');
Modularity Modularity
---------- ----------
......
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