Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Console] Add option to automatically run suggested command if there is only 1 alternative #25732

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove deprecation and future BC break
  • Loading branch information
pierredup committed Jan 23, 2018
commit d93ca23357b166a44d6bcdbdceca6389fc037d87
20 changes: 0 additions & 20 deletions 20 UPGRADE-4.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,6 @@ Config
* Implementing `ParentNodeDefinitionInterface` without the `getChildNodeDefinitions()` method
is deprecated and will be unsupported in 5.0.

Console
-------
* The `Application::findNamespace` method throws an instance of `NamespaceNotFoundException` instead `CommandNotFoundException`. All catch statements should be updated to cater for both exceptions, E.G

Before:
```php
try {
$app->run();
} catch (CommandNotFoundException $e) {
}
```

After:
```php
try {
$app->run();
} catch (NamespaceNotFoundException | CommandNotFoundException $e) {
}
```

EventDispatcher
---------------

Expand Down
21 changes: 0 additions & 21 deletions 21 UPGRADE-5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,6 @@ Config

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

Console
-------

* The `NamespaceNotFoundException` doesn't extend `CommandNotFoundException` anymore. All catch statements should be updated to cater for both exceptions, E.G

Before:
```php
try {
$app->run();
} catch (CommandNotFoundException $e) {
}
```

After:
```php
try {
$app->run();
} catch (NamespaceNotFoundException | CommandNotFoundException $e) {
}
```

EventDispatcher
---------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
* Represents an incorrect namespace typed in the console.
*
* @author Pierre du Plessis <pdples@gmail.com>
*
* @deprecated This class won't extend CommandNotFoundException in Symfony 5
*/
class NamespaceNotFoundException extends CommandNotFoundException
{
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.