File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
components/console/helpers Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -288,4 +288,4 @@ input stream.
288
288
.. seealso ::
289
289
290
290
You find more information about testing commands in the console component
291
- docs about :ref: `testing console commands <component- console-testing-commands >`.
291
+ docs about :ref: `testing console commands <console-testing-commands >`.
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ output stream (to write messages to the console)::
101
101
102
102
// output a message without moving to a new line (the message will
103
103
// apear on one line)
104
- $output->write('You\'re about to');
104
+ $output->write('You are about to ');
105
105
$output->write('generate an admin user.');
106
106
}
107
107
@@ -114,7 +114,7 @@ Now, try executing the command:
114
114
===============
115
115
116
116
Whoa!
117
- You' re about to generate an admin user.
117
+ You are about to generate an admin user.
118
118
119
119
Console Input
120
120
-------------
@@ -220,6 +220,8 @@ command:
220
220
This method is executed after ``interact() `` and ``initialize() ``.
221
221
It contains the logic you want the command to execute.
222
222
223
+ .. _console-testing-commands :
224
+
223
225
Testing Commands
224
226
----------------
225
227
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ Manually Logging from a Console Command
22
22
---------------------------------------
23
23
24
24
This one is really simple. When you create a console command within the full-stack
25
- framework as described in ":doc: `/console/console_command `", your command
26
- extends :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Command\\ ContainerAwareCommand `.
25
+ framework as described in ":doc: `/console `", your command extends
26
+ :class: `Symfony\\ Bundle\\ FrameworkBundle\\ Command\\ ContainerAwareCommand `.
27
27
This means that you can simply access the standard logger service through the
28
28
container and use it to do the logging::
29
29
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ console.command
351
351
**Purpose **: Add a command to the application
352
352
353
353
For details on registering your own commands in the service container, read
354
- :ref: ` the cookbook article<cookbook- console-dic> `.
354
+ :doc: ` / console/commands_as_services `.
355
355
356
356
data_collector
357
357
--------------
You can’t perform that action at this time.
0 commit comments