Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit da6002d

Browse filesBrowse files
committed
Wrapping line
1 parent b1b9090 commit da6002d
Copy full SHA for da6002d

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎book/security.rst

Copy file name to clipboardExpand all lines: book/security.rst
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,8 @@ authorization from inside a controller::
10871087
.. versionadded:: 2.5
10881088
The ``createAccessDeniedException`` method was introduced in Symfony 2.5.
10891089

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`
10911092
object, which ultimately triggers a 403 HTTP response inside Symfony.
10921093

10931094
Thanks to the SensioFrameworkExtraBundle, you can also secure your controller using annotations::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.