Skip to content

Commit 26050d0

Browse files
committed
Minor tweaks
1 parent 8e0f3f5 commit 26050d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/console/helpers/formatterhelper.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Formatter Helper
33

44
The :class:`Symfony\\Component\\Console\\Helper\\FormatterHelper` helper provides
55
functions to format the output with colors. You can do more advanced things with
6-
this helper than you can in :doc:`/console/coloring`::
6+
this helper than you can with the :doc:`basic colors and styles </console/coloring>`::
77

88
$formatter = new FormatterHelper();
99

console.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ completion (by default, by pressing the Tab key).
112112
Creating a Command
113113
------------------
114114

115-
Commands are defined in classes, for example, you may want a command to create a user. Use
116-
the ``#[AsCommand]`` attribute to auto-register it::
115+
Commands are defined in classes and auto-registered using the ``#[AsCommand]``
116+
attribute. For example, you may want a command to create a user::
117117

118118
// src/Command/CreateUserCommand.php
119119
namespace App\Command;
@@ -412,7 +412,7 @@ command:
412412
Note that it will not be called when the command is run without interaction
413413
(e.g. when passing the ``--no-interaction`` global option flag).
414414

415-
``__invoke()`` *(required)*
415+
``__invoke()`` (or :method:`Symfony\\Component\\Console\\Command\\Command::execute`) *(required)*
416416
This method is executed after ``interact()`` and ``initialize()``.
417417
It contains the logic you want the command to execute and it must
418418
return an integer which will be used as the command `exit status`_.

0 commit comments

Comments
 (0)