[FrameworkBundle] Switched to parameters for request context host and scheme
This commit is contained in:
parent
e08e60ce31
commit
d30943c2e8
|
@ -1353,6 +1353,11 @@
|
|||
decoded twice before. Note that the `urldecode()` calls have been changed for a
|
||||
single `rawurldecode()` in order to support `+` for input paths.
|
||||
|
||||
* Two new parameters have been added to the DIC: `router.request_context.host`
|
||||
and `router.request_context.scheme`. You can customize them for your
|
||||
functional tests or for generating urls with the right host and scheme
|
||||
when your are in the cli context.
|
||||
|
||||
### FrameworkBundle
|
||||
|
||||
* session options: lifetime, path, domain, secure, httponly were deprecated.
|
||||
|
|
|
@ -22,6 +22,8 @@
|
|||
<parameter key="router.options.matcher.cache_class">%kernel.name%%kernel.environment%UrlMatcher</parameter>
|
||||
<parameter key="router.options.generator.cache_class">%kernel.name%%kernel.environment%UrlGenerator</parameter>
|
||||
<parameter key="router_listener.class">Symfony\Component\HttpKernel\EventListener\RouterListener</parameter>
|
||||
<parameter key="router.request_context.host">localhost</parameter>
|
||||
<parameter key="router.request_context.scheme">http</parameter>
|
||||
</parameters>
|
||||
|
||||
<services>
|
||||
|
@ -74,8 +76,8 @@
|
|||
<service id="router.request_context" class="%router.request_context.class%" public="false">
|
||||
<argument></argument>
|
||||
<argument>GET</argument>
|
||||
<argument>localhost</argument>
|
||||
<argument>http</argument>
|
||||
<argument>%router.request_context.host%</argument>
|
||||
<argument>%router.request_context.scheme%</argument>
|
||||
<argument>%request_listener.http_port%</argument>
|
||||
<argument>%request_listener.https_port%</argument>
|
||||
</service>
|
||||
|
|
Reference in New Issue