8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3e8f0e commit 4143835Copy full SHA for 4143835
console/commands_as_services.rst
@@ -60,6 +60,13 @@ works! You can call the ``app:sunshine`` command and start logging.
60
work (e.g. making database queries), as that code will be run, even if you're using
61
the console to execute a different command.
62
63
+.. note::
64
+
65
+ In previous Symfony versions, you could make the command class extend from
66
+ :class:`Symfony\\Bundle\\FrameworkBundle\\Command\\ContainerAwareCommand` to
67
+ get services via ``$this->getContainer()->get('SERVICE_ID')``. This is
68
+ deprecated in Symfony 4.2 and it won't work in future Symfony versions.
69
70
.. _console-command-service-lazy-loading:
71
72
Lazy Loading
0 commit comments