Skip to content

Commit

Permalink
[FrameworkBundle] Switched to parameters for request context host and…
Browse files Browse the repository at this point in the history
… scheme
  • Loading branch information
marc.weistroff committed Jul 26, 2012
1 parent e08e60c commit d30943c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 5 additions & 0 deletions UPGRADE-2.1.md
Expand Up @@ -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.
Expand Down
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit d30943c

Please sign in to comment.