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.
2 parents 5f69c8f + a801c09 commit 1112cc2Copy full SHA for 1112cc2
book/controller.rst
100644
100755
@@ -395,6 +395,15 @@ itself.
395
:class:`Symfony\\Component\\DependencyInjection\\ContainerAware`. The service
396
container object will then be accessible via the ``container`` property.
397
398
+.. tip::
399
+
400
+ If your host uses PHP 5.4 or higher, you can also use the
401
+ class:`Symfony\\Component\\DependencyInjection\\ContainerAwareTrait` trait to
402
+ make the container accessible via the ``container`` property.
403
404
+.. versionadded:: 2.4
405
+ The ``ContainerAwareTrait`` is new in Symfony 2.4
406
407
.. note::
408
409
You can also define your :doc:`Controllers as Services</cookbook/controller/service>`.
0 commit comments