in both ways, you also need to add:

````rst
.. versionadded:: 2.4
    The ``ContainerAwareTrait`` is new in Symfony 2.4
````