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
33
44The :class: `Symfony\\ Component\\ Console\\ Helper\\ FormatterHelper ` helper provides
55functions 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
Original file line number Diff line number Diff line change @@ -112,8 +112,8 @@ completion (by default, by pressing the Tab key).
112112Creating 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 `_.
You can’t perform that action at this time.
0 commit comments