Skip to content

Commit

Permalink
fixed doc markup
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jun 13, 2012
1 parent 675a4c8 commit 19dd1c4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions doc/providers.rst
Expand Up @@ -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
-----------------
Expand Down Expand Up @@ -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
~~~~~~~~~~~~~~~~~~~
Expand Down
4 changes: 2 additions & 2 deletions doc/providers/http_cache.rst
Expand Up @@ -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;
Expand All @@ -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();

Expand Down
6 changes: 3 additions & 3 deletions doc/services.rst
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions doc/usage.rst
Expand Up @@ -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
----------
Expand Down

0 comments on commit 19dd1c4

Please sign in to comment.