File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
components/console/helpers Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ Formatter Helper
3
3
4
4
The :class: `Symfony\\ Component\\ Console\\ Helper\\ FormatterHelper ` helper provides
5
5
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 > `::
7
7
8
8
$formatter = new FormatterHelper();
9
9
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ completion (by default, by pressing the Tab key).
112
112
Creating a Command
113
113
------------------
114
114
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 ::
117
117
118
118
// src/Command/CreateUserCommand.php
119
119
namespace App\Command;
@@ -412,7 +412,7 @@ command:
412
412
Note that it will not be called when the command is run without interaction
413
413
(e.g. when passing the ``--no-interaction `` global option flag).
414
414
415
- ``__invoke() `` *(required) *
415
+ ``__invoke() `` (or :method: ` Symfony \\ Component \\ Console \\ Command \\ Command::execute `) *(required) *
416
416
This method is executed after ``interact() `` and ``initialize() ``.
417
417
It contains the logic you want the command to execute and it must
418
418
return an integer which will be used as the command `exit status `_.
You can’t perform that action at this time.
0 commit comments