You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: book/security.rst
+2-1
Original file line number
Diff line number
Diff line change
@@ -1087,7 +1087,8 @@ authorization from inside a controller::
1087
1087
.. versionadded:: 2.5
1088
1088
The ``createAccessDeniedException`` method was introduced in Symfony 2.5.
1089
1089
1090
-
The :method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::createAccessDeniedException()` method creates a special :class:`Symfony\\Component\\Security\\Core\Exception\\AccessDeniedException`
1090
+
The :method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::createAccessDeniedException()`
1091
+
method creates a special :class:`Symfony\\Component\\Security\\Core\Exception\\AccessDeniedException`
1091
1092
object, which ultimately triggers a 403 HTTP response inside Symfony.
1092
1093
1093
1094
Thanks to the SensioFrameworkExtraBundle, you can also secure your controller using annotations::
0 commit comments