8000 Complete UPGRADE-4.2.md · symfony/symfony@fee81f8 · GitHub
[go: up one dir, main page]

Skip to content

Commit fee81f8

Browse files
committed
Complete UPGRADE-4.2.md
1 parent 8d277ce commit fee81f8

File tree

1 file changed

+36
-17
lines changed

1 file changed

+36
-17
lines changed

UPGRADE-4.2.md

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,20 @@ Cache
1414
Config
1515
------
1616

17-
* Deprecated constructing a `TreeBuilder` without passing root node information.
17+
* Deprecated constructing a `TreeBuilder` without passing root node information:
18+
19+
Before:
20+
```php
21+
$treeBuilder = new TreeBuilder();
22+
$rootNode = $treeBuilder->root('my_config');
23+
```
24+
25+
After:
26+
```php
27+
$treeBuilder = new TreeBuilder('my_config');
28+
$rootNode = $treeBuilder->getRootNode();
29+
```
30+
1831
* Deprecated `FileLoaderLoadException`, use `LoaderLoadException` instead.
1932

2033
Console
@@ -106,25 +119,15 @@ Form
106119

107120
* The `regions` option of the `TimezoneType` is deprecated.
108121

109-
HttpFoundation
110-
--------------
111-
112-
* The default value of the "$secure" and "$samesite" arguments of Cookie's constructor
113-
will respectively change from "false" to "null" and from "null" to "lax" in Symfony
114-
5.0, you should define their values explicitly or use "Cookie::create()" instead.
115-
116-
HttpKernel
117-
----------
118-
119-
* The `Kernel::getRootDir()` and the `kernel.root_dir` parameter have been deprecated
120-
* The `KernelInterface::getName()` and the `kernel.name` parameter have been deprecated
121-
* Deprecated the first and second constructor argument of `ConfigDataCollector`
122-
* Deprecated `ConfigDataCollector::getApplicationName()`
123-
* Deprecated `ConfigDataCollector::getApplicationVersion()`
124-
125122
FrameworkBundle
126123
---------------
127124

125+
* The following middleware service ids were renamed:
126+
- `messenger.middleware.call_message_handler` becomes `messenger.middleware.handle_message`
127+
- `messenger.middleware.route_messages` becomes `messenger.middleware.send_message`
128+
129+
If you set `framework.messenger.buses.[bus_id].default_middleware` to `false`,
130+
replace any of these names in the `framework.messenger.buses.[bus_id].middleware` list.
128131
* The `allow_no_handler` middleware has been removed. Use `framework.messenger.buses.[bus_id].default_middleware` instead:
129132

130133
Before:
@@ -180,6 +183,22 @@ FrameworkBundle
180183
* Deprecated support for legacy translations directories `src/Resources/translations/` and `src/Resources/<BundleName>/translations/`, use `translations/` instead.
181184
* Support for the legacy directory structure in `translation:update` and `debug:translation` commands has been deprecated.
182185

186+
HttpFoundation
187+
--------------
188+
189+
* The default value of the `$secure` and `$samesite` arguments of Cookie's constructor
190+
will respectively change from `false` to `null` and from `null` to `lax` in Symfony
191+
5.0, you should define their values explicitly or use `Cookie::create()` instead.
192+
193+
HttpKernel
194+
----------
195+
196+
* The `Kernel::getRootDir()` and the `kernel.root_dir` parameter have been deprecated
197+
* The `KernelInterface::getName()` and the `kernel.name` parameter have been deprecated
198+
* Deprecated the first and second constructor argument of `ConfigDataCollector`
199+
* Deprecated `ConfigDataCollector::getApplicationName()`
200+
* Deprecated `ConfigDataCollector::getApplicationVersion()`
201+
183202
Messenger
184203
---------
185204

0 commit comments

Comments
 (0)
0