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
19dd1c4d
Commit
19dd1c4d
authored
Jun 13, 2012
by
Fabien Potencier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed doc markup
parent
675a4c8e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
doc/providers.rst
doc/providers.rst
+3
-3
doc/providers/http_cache.rst
doc/providers/http_cache.rst
+2
-2
doc/services.rst
doc/services.rst
+3
-3
doc/usage.rst
doc/usage.rst
+2
-2
No files found.
doc/providers.rst
View file @
19dd1c4d
...
...
@@ -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
~~~~~~~~~~~~~~~~~~~
...
...
doc/providers/http_cache.rst
View file @
19dd1c4d
...
...
@@ -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();
...
...
doc/services.rst
View file @
19dd1c4d
...
...
@@ -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.
...
...
doc/usage.rst
View file @
19dd1c4d
...
...
@@ -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
----------
...
...
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