File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -378,11 +378,17 @@ itself.
378
378
379
379
Extending the base class is *optional * in Symfony; it contains useful
380
380
shortcuts but nothing mandatory. You can also extend
381
- :class: `Symfony\\ Component\\ DependencyInjection\\ ContainerAware`or use the
382
- :class:`Symfony\\ Component\\ DependencyInjection\\ ContainerAwareTrait ` (>= PHP 5.4).
383
- Both provide an implementation to the
384
- :class: `Symfony\\ Component\\ DependencyInjection\\ ContainerAwareInterface `, making the
385
- service container object accessible via the ``container `` property.
381
+ :class: `Symfony\\ Component\\ DependencyInjection\\ ContainerAware `. The service
382
+ container object will then be accessible via the ``container `` property.
383
+
384
+ .. tip ::
385
+
386
+ If your host uses PHP 5.4 or higher, you can also use the
387
+ class:`Symfony\\Component\\DependencyInjection\\ContainerAwareTrait ` trait to
388
+ make the container accessible via the ``container `` property.
389
+
390
+ .. versionadded :: 2.4
391
+ The ``ContainerAwareTrait `` is new in Symfony 2.4
386
392
387
393
.. note ::
388
394
You can’t perform that action at this time.
0 commit comments