Permalink
Browse files

use AccessDeniedHttpException instead of AccessDeniedException

  • Loading branch information...
Inoryy committed Nov 24, 2012
1 parent a4dae85 commit d6e119a5e259420eb1c90c952677979a5ac4eba7
Showing with 2 additions and 2 deletions.
  1. +2 −2 Controller/Controller.php
@@ -3,7 +3,7 @@
namespace Knp\RadBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\Controller as BaseController;
-use Symfony\Component\Security\Core\Exception\AccessDeniedException;
+use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
use Symfony\Component\HttpFoundation\Request;
class Controller extends BaseController
@@ -15,7 +15,7 @@ protected function redirectToRoute($route, $parameters = array(), $status = 302)
protected function createAccessDeniedException($message = 'Access Denied', \Exception $previous = null)
{
- return new AccessDeniedException($message, $previous);
+ return new AccessDeniedHttpException($message, $previous);
}
protected function getEntityManager()

0 comments on commit d6e119a

Please sign in to comment.