8000 Remove deprecation and future BC break · symfony/symfony@d93ca23 · GitHub
[go: up one dir, main page]

Skip to content

Commit d93ca23

Browse files
committed
Remove deprecation and future BC break
1 parent 5bdcdda commit d93ca23

File tree

3 files changed

+0
-43
lines changed

3 files changed

+0
-43
lines changed

UPGRADE-4.1.md

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,6 @@ Config
77
* Implementing `ParentNodeDefinitionInterface` without the `getChildNodeDefinitions()` method
88
is deprecated and will be unsupported in 5.0.
99

10-
Console
11-
-------
12-
* The `Application::findNamespace` method throws an instance of `NamespaceNotFoundException` instead `CommandNotFoundException`. All catch statements should be updated to cater for both exceptions, E.G
13-
14-
Before:
15-
```php
16-
try {
17-
$app->run();
18-
} catch (CommandNotFoundException $e) {
19-
}
20-
```
21-
22-
After:
23-
```php
24-
try {
25-
$app->run();
26-
} catch (NamespaceNotFoundException | CommandNotFoundException $e) {
27-
}
28-
```
29-
3010
EventDispatcher
3111
---------------
3212

UPGRADE-5.0.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,6 @@ Config
66

77
* Added the `getChildNodeDefinitions()` method to `ParentNodeDefinitionInterface`.
88

9-
Console
10-
-------
11-
12-
* The `NamespaceNotFoundException` doesn't extend `CommandNotFoundException` anymore. All catch statements should be updated to cater for both exceptions, E.G
13-
14-
Before:
15-
```php
16-
try {
17-
$app->run();
18-
} catch (CommandNotFoundException $e) {
19-
}
20-
```
21-
22-
After:
23-
```php
24-
try {
25-
$app->run();
26-
} catch (NamespaceNotFoundException | CommandNotFoundException $e) {
27-
}
28-
```
29-
309
EventDispatcher
3110
---------------
3211

src/Symfony/Component/Console/Exception/NamespaceNotFoundException.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
* Represents an incorrect namespace typed in the console.
1616
*
1717
* @author Pierre du Plessis <pdples@gmail.com>
18-
*
19-
* @deprecated This class won't extend CommandNotFoundException in Symfony 5
2018
*/
2119
class NamespaceNotFoundException extends CommandNotFoundException
2220
{

0 commit comments

Comments
 (0)
0