8000 merged branch richardmiller/bc_break_changes_in_upgrade (PR #3877) · symfony/symfony@d167fd4 · GitHub
[go: up one dir, main page]

Skip to content

Commit d167fd4

Browse files
committed
merged branch richardmiller/bc_break_changes_in_upgrade (PR #3877)
Commits ------- f23b4fa Added some bc breaks from the changelog into UPGRADE-2.1.md Discussion ---------- Added some bc breaks from the changelog into UPGRADE-2.1.md
2 parents cc833b1 + f23b4fa commit d167fd4

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

UPGRADE-2.1.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
default_locale: fr
3535
```
3636
37+
* The methods `getPathInfo()`, `getBaseUrl()` and `getBasePath()` of
38+
a `Request` now all return a raw value (vs a urldecoded value before). Any call
39+
to one of these methods must be checked and wrapped in a `rawurldecode()` if
40+
needed.
41+
3742
##### Retrieving the locale from a Twig template
3843
3944
Before: `{{ app.request.session.locale }}` or `{{ app.session.locale }}`
@@ -87,6 +92,45 @@
8792
// ...
8893
}
8994
```
95+
* The custom factories for the firewall configuration are now
96+
registered during the build method of bundles instead of being registered
97+
by the end-user. This means that you will you need to remove the 'factories'
98+
keys in your security configuration.
99+
100+
* The Firewall listener is now registered after the Router listener. This
101+
means that specific Firewall URLs (like /login_check and /logout) must now
102+
have proper routes defined in your routing configuration.
103+
104+
* The user provider configuration has been refactored. The configuration
105+
for the chain provider and the memory provider has been changed:
106+
107+
Before:
108+
109+
``` yaml
110+
security:
111+
providers:
112+
my_chain_provider:
113+
providers: [my_memory_provider, my_doctrine_provider]
114+
my_memory_provider:
115+
users:
116+
toto: { password: foobar, roles: [ROLE_USER] }
117+
foo: { password: bar, roles: [ROLE_USER, ROLE_ADMIN] }
118+
```
119+
120+
After:
121+
122+
``` yaml
123+
security:
124+
providers:
125+
my_chain_provider:
126+
chain:
127+
providers: [my_memory_provider, my_doctrine_provider]
128+
my_memory_provider:
129+
memory:
130+
users:
131+
toto: { password: foobar, roles: [ROLE_USER] }
132+
foo: { password: bar, roles: [ROLE_USER, ROLE_ADMIN] }
133+
```
90134
91135
### Form and Validator
92136
@@ -356,6 +400,37 @@
356400
357401
* Refactor code using `$session->*flash*()` methods to use `$session->getFlashBag()->*()`.
358402
403+
### Serializer
404+
405+
* The key names craeted by the `GetSetMethodNormalizer` have changed from
406+
from all lowercased to camelCased (e.g. `mypropertyvalue` to `myPropertyValue`).
407+
408+
* The `item` element is now converted to an array when deserializing XML.
409+
410+
``` xml
411+
<?xml version="1.0"?>
412+
<response>
413+
<item><title><![CDATA[title1]]></title></item><item><title><![CDATA[title2]]></title></item>
414+
</response>
415+
```
416+
417+
Before:
418+
419+
Array()
420+
421+
After:
422+
423+
Array(
424+
[item] => Array(
425+
[0] => Array(
426+
[title] => title1
427+
)
428+
[1] => Array(
429+
[title] => title2
430+
)
431+
)
432+
)
433+
359434
### FrameworkBundle
360435
361436
* session options: lifetime, path, domain, secure, httponly were deprecated.
@@ -401,4 +476,8 @@ To use mock session storage use the following. `handler_id` is irrelevant in th
401476
session:
402477
storage_id: session.storage.mock_file
403478
```
479+
### WebProfilerBundle
480+
481+
* You must clear old profiles after upgrading to 2.1. If you are using a
482+
database then you will need to remove the table.
404483

0 commit comments

Comments
 (0)
0