Skip to content

Commit

Permalink
Wrapping line
Browse files Browse the repository at this point in the history
  • Loading branch information
klaussilveira committed Jan 17, 2014
1 parent b1b9090 commit da6002d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion book/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,8 @@ authorization from inside a controller::
.. versionadded:: 2.5
The ``createAccessDeniedException`` method was introduced in Symfony 2.5.

The :method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::createAccessDeniedException()` method creates a special :class:`Symfony\\Component\\Security\\Core\Exception\\AccessDeniedException`
The :method:`Symfony\\Bundle\\FrameworkBundle\\Controller\\Controller::createAccessDeniedException()`
method creates a special :class:`Symfony\\Component\\Security\\Core\Exception\\AccessDeniedException`
object, which ultimately triggers a 403 HTTP response inside Symfony.

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

0 comments on commit da6002d

Please sign in to comment.