Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.3k
Docs re-org and removal of small sections#8537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
73ac3420059a297d46a71a6d03a1e81ce76d2ddd6822306582546a51f4a6d4e0401e38File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -611,7 +611,6 @@ Learn More | ||
| /components/http_foundation/* | ||
| /controller | ||
| /controller/* | ||
| /session/* | ||
| /http_cache/* | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -50,6 +50,8 @@ Configuration | ||
| * `ip`_ | ||
| * :ref:`path <reference-profiler-matcher-path>` | ||
| * `service`_ | ||
| * `request`_: | ||
| * `formats`_ | ||
| * `router`_ | ||
| * `resource`_ | ||
| * `type`_ | ||
| @@ -178,7 +180,7 @@ trusted_proxies | ||
| **type**: ``array`` | ||
| Configures the IP addresses that should be trusted as proxies. For more | ||
| details, see :doc:`/deployment/proxies`. | ||
| .. versionadded:: 2.3 | ||
| CIDR notation support was introduced in Symfony 2.3, so you can whitelist | ||
| @@ -647,6 +649,69 @@ service | ||
| This setting contains the service id of a custom matcher. | ||
| request | ||
| ~~~~~~~ | ||
| formats | ||
Member There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Should we include here the configuration example of the original MemberAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. good idea - done! | ||
| ....... | ||
| **type**: ``array`` **default**: ``[]`` | ||
| This setting is used to associate additional request formats (e.g. ``html``) | ||
| to one or more mime types (e.g. ``text/html``), which will allow you to use the | ||
| format & mime types to call | ||
| :method:`Request::getFormat($mimeType) <Symfony\\Component\\HttpFoundation\\Request::getFormat>` or | ||
| :method:`Request::getMimeType($format) <Symfony\\Component\\HttpFoundation\\Request::getMimeType>`. | ||
| In practice, this is important because Symfony uses it to automatically set the | ||
| ``Content-Type`` header on the ``Response`` (if you don't explicitly set one). | ||
| If you pass an array of mime types, the first will be used for the header. | ||
| To configure a ``jsonp`` format: | ||
| .. configuration-block:: | ||
| .. code-block:: yaml | ||
| # app/config/config.yml | ||
| framework: | ||
| request: | ||
| formats: | ||
| jsonp: 'application/javascript' | ||
| .. code-block:: xml | ||
| <!-- app/config/config.xml --> | ||
| <?xml version="1.0" encoding="UTF-8" ?> | ||
| <container xmlns="http://symfony.com/schema/dic/services" | ||
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| xmlns:framework="http://symfony.com/schema/dic/symfony" | ||
| xsi:schemaLocation="http://symfony.com/schema/dic/services | ||
| http://symfony.com/schema/dic/services/services-1.0.xsd | ||
| http://symfony.com/schema/dic/symfony | ||
| http://symfony.com/schema/dic/symfony/symfony-1.0.xsd"> | ||
| <framework:config> | ||
| <framework:request> | ||
| <framework:format name="jsonp"> | ||
| <framework:mime-type>application/javascript</framework:mime-type> | ||
| </framework:format> | ||
| </framework:request> | ||
| </framework:config> | ||
| </container> | ||
| .. code-block:: php | ||
| // app/config/config.php | ||
| $container->loadFromExtension('framework', array( | ||
| 'request' => array( | ||
| 'formats' => array( | ||
| 'jsonp' => 'application/javascript', | ||
| ), | ||
| ), | ||
| )); | ||
| router | ||
| ~~~~~~ | ||
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.