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

fixed doc markup

parent 675a4c8e
......@@ -3,8 +3,8 @@ Providers
Providers allow the developer to reuse parts of an application into another
one. Silex provides two types of providers defined by two interfaces:
`ServiceProviderInterface` for services and `ControllerProviderInterface` for
controllers.
``ServiceProviderInterface`` for services and ``ControllerProviderInterface``
for controllers.
Service Providers
-----------------
......@@ -146,7 +146,7 @@ controllers under a path::
$app->mount('/blog', new Acme\BlogControllerProvider());
All controllers defined by the provider will now be available under the
`/blog` path.
``/blog`` path.
Creating a provider
~~~~~~~~~~~~~~~~~~~
......
......@@ -43,7 +43,7 @@ setting Response HTTP cache headers::
.. 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::
use Symfony\Component\HttpFoundation\Request;
......@@ -52,7 +52,7 @@ setting Response HTTP cache headers::
$app->run();
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();
......
......@@ -211,14 +211,14 @@ don't want to mess with most of them.
the request that is used by the Router and the UrlGenerator.
* **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
`unset($app['exception_handler'])`.
``unset($app['exception_handler'])``.
* **logger**: A
`LoggerInterface
<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
as the default logger.
......
......@@ -602,9 +602,9 @@ round-trip to the browser (as for a redirect), use an internal sub-request::
.. 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
----------
......
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