File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -378,8 +378,11 @@ 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 `. The service
382
- container object will then be accessible via the ``container `` property.
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.
383
386
384
387
.. note ::
385
388
You can’t perform that action at this time.
0 commit comments