File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/Symfony/Bundle/FrameworkBundle/Resources/config Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 10
10
` MongoDate ` instead of ` MongoTimestamp ` , which also makes it possible to use
11
11
TTL collections in MongoDB 2.2+ instead of relying on the ` gc() ` method.
12
12
13
+ ### Routing
14
+
15
+ * A new parameter has been added to the DIC: ` router.request_context.base_url `
16
+ You can customize it for your functional tests or for generating urls with
17
+ the right base url when your are in the cli context.
18
+
19
+
13
20
#### Deprecations
14
21
15
22
* The ` Request::splitHttpAcceptHeader() ` is deprecated and will be removed in 2.3.
Original file line number Diff line number Diff line change 24
24
<parameter key =" router_listener.class" >Symfony\Component\HttpKernel\EventListener\RouterListener</parameter >
25
25
<parameter key =" router.request_context.host" >localhost</parameter >
26
26
<parameter key =" router.request_context.scheme" >http</parameter >
27
+ <parameter key =" router.request_context.base_url" ></parameter >
27
28
</parameters >
28
29
29
30
<services >
74
75
<service id =" router" alias =" router.default" />
75
76
76
77
<service id =" router.request_context" class =" %router.request_context.class%" public =" false" >
77
- <argument ></argument >
78
+ <argument >%router.request_context.base_url% </argument >
78
79
<argument >GET</argument >
79
80
<argument >%router.request_context.host%</argument >
80
81
<argument >%router.request_context.scheme%</argument >
You can’t perform that action at this time.
0 commit comments