Let's add a `versionadded` block above this:

```
.. versionadded:: 2.5
    The ``createAccessDeniedException`` method was introduced in Symfony 2.5.
```