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.
288288.. seealso ::
289289
290290 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)::
101101
102102 // output a message without moving to a new line (the message will
103103 // apear on one line)
104- $output->write('You\'re about to');
104+ $output->write('You are about to ');
105105 $output->write('generate an admin user.');
106106 }
107107
@@ -114,7 +114,7 @@ Now, try executing the command:
114114 ===============
115115
116116 Whoa!
117- You' re about to generate an admin user.
117+ You are about to generate an admin user.
118118
119119 Console Input
120120-------------
@@ -220,6 +220,8 @@ command:
220220 This method is executed after ``interact() `` and ``initialize() ``.
221221 It contains the logic you want the command to execute.
222222
223+ .. _console-testing-commands :
224+
223225Testing Commands
224226----------------
225227
Original file line number Diff line number Diff line change @@ -22,8 +22,8 @@ Manually Logging from a Console Command
2222---------------------------------------
2323
2424This 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 `.
2727This means that you can simply access the standard logger service through the
2828container and use it to do the logging::
2929
Original file line number Diff line number Diff line change @@ -351,7 +351,7 @@ console.command
351351**Purpose **: Add a command to the application
352352
353353For 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 `.
355355
356356data_collector
357357--------------
You can’t perform that action at this time.
0 commit comments