Skip to content

Commit 0352b87

Browse files
committed
minor #21601 [Console] Fix wrong method name to add a command to an application (Nek-)
This PR was merged into the 8.0 branch. Discussion ---------- [Console] Fix wrong method name to add a command to an application The method `add` of the class Application does not exist anymore in Symfony 8.0 ! Commits ------- 55ecef8 [Console] Fix wrong method name to add a command to an application
2 parents c4b80b0 + 55ecef8 commit 0352b87

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

components/console.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,6 @@ Then, you can register the commands using
4848
// ...
4949
$application->addCommand(new GenerateAdminCommand());
5050

51-
.. versionadded:: 7.4
52-
53-
The ``addCommand()`` method was introduced in Symfony 7.4. In earlier
54-
versions, you had to use the ``add()`` method of the same class.
55-
5651
You can also register inline commands and define their behavior thanks to the
5752
``Command::setCode()`` method::
5853

0 commit comments

Comments
 (0)