[FrameworkBundle] Added a helper method to create AccessDeniedException
feature #9405 [FrameworkBundle] Added a helper method to create AccessDeniedException (klaussilveira)

This PR was squashed before being merged into the 2.5-dev branch (closes #9405).

Discussion
----------

[FrameworkBundle] Added a helper method to create AccessDeniedException

Just a small helper method that has been missing, since the addition of createNotFoundException().

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

183d0ec [FrameworkBundle] Added a helper method to create AccessDeniedException