Skip to content

Commit 6bbf459

Browse files
committed
Merge pull request symfony#503 from gbirke/cookbook-console-command
Fixed console command example
2 parents e353e99 + 49332b7 commit 6bbf459

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cookbook/console.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,11 @@ console.
237237
Getting Services from the Service Container
238238
-------------------------------------------
239239

240-
By using ``Symfony\Bundle\FrameworkBundle\Command\Command`` as the base class
241-
for the command (instead of the more basic
242-
``Symfony\Component\Console\Command\Command``), you have access to the service
243-
container. In other words, you have access to any configured service. For
244-
example, you could easily extend the task to be translatable::
240+
By using :class:`Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand`
241+
as the base class for the command (instead of the more basic
242+
:class:`Symfony\Component\Console\Command\Command`), you have access to the
243+
service container. In other words, you have access to any configured service.
244+
For example, you could easily extend the task to be translatable::
245245

246246
protected function execute(InputInterface $input, OutputInterface $output)
247247
{

0 commit comments

Comments
 (0)