diff options
author | Fabien Potencier <fabien.potencier@gmail.com> | 2010-12-10 09:00:06 +0100 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2010-12-10 09:00:06 +0100 |
commit | e9da6808ac764f3cfb9e94f7b99b981c4b66da02 (patch) | |
tree | 5d6e63b9cea79a917c01aa0e4704db1025d27433 /Exception | |
parent | d4e986a1fe559c9ed5077086e861a0f069a1631f (diff) | |
download | symfony-security-e9da6808ac764f3cfb9e94f7b99b981c4b66da02.zip symfony-security-e9da6808ac764f3cfb9e94f7b99b981c4b66da02.tar.gz symfony-security-e9da6808ac764f3cfb9e94f7b99b981c4b66da02.tar.bz2 |
removed ForbiddenHttpException
Both HttpKernel and Security define a 403 exception:
* Symfony\Component\HttpKernel\Exception\ForbiddenHttpException
* Symfony\Component\Security\Exception\AccessDeniedException
The one in HttpKernel has been removed in favor of the Security one.
Diffstat (limited to 'Exception')
-rw-r--r-- | Exception/AccessDeniedException.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Exception/AccessDeniedException.php b/Exception/AccessDeniedException.php index 6a48d89..9dde809 100644 --- a/Exception/AccessDeniedException.php +++ b/Exception/AccessDeniedException.php @@ -18,7 +18,7 @@ namespace Symfony\Component\Security\Exception; */ class AccessDeniedException extends \RuntimeException { - public function __construct($message = '', $code = 403, \Exception $previous = null) + public function __construct($message = 'Access Denied', \Exception $previous = null) { parent::__construct($message, 403, $previous); } |