Skip to content

Commit 3210251

Browse files
committed
[#2891] Shortening note about ContainerAwareTrait
1 parent 1112cc2 commit 3210251

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

book/controller.rst

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -392,17 +392,13 @@ itself.
392392

393393
Extending the base class is *optional* in Symfony; it contains useful
394394
shortcuts but nothing mandatory. You can also extend
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.
395+
:class:`Symfony\\Component\\DependencyInjection\\ContainerAware` or use
396+
the class:`Symfony\\Component\\DependencyInjection\\ContainerAwareTrait` trait
397+
(if you have PHP 5.4). The service container object will then be accessible
398+
via the ``container`` property.
403399

404400
.. versionadded:: 2.4
405-
The ``ContainerAwareTrait`` is new in Symfony 2.4
401+
The ``ContainerAwareTrait`` is new in Symfony 2.4.
406402

407403
.. note::
408404

0 commit comments

Comments
 (0)