|
@@ -11,6 +11,7 @@
|
|
|
|
|
|
namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\FormLoginBundle\Controller;
|
|
namespace Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\FormLoginBundle\Controller;
|
|
|
|
|
|
|
|
+use Symfony\Component\Security\Core\Exception\AccessDeniedException;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\HttpFoundation\Response;
|
|
use Symfony\Component\Security\Core\SecurityContext;
|
|
use Symfony\Component\Security\Core\SecurityContext;
|
|
use Symfony\Component\DependencyInjection\ContainerAware;
|
|
use Symfony\Component\DependencyInjection\ContainerAware;
|
|
@@ -42,4 +43,9 @@ class LoginController extends ContainerAware
|
|
{
|
|
{
|
|
return new Response('', 400);
|
|
return new Response('', 400);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public function secureAction()
|
|
|
|
+ {
|
|
|
|
+ throw new \Exception('Wrapper', 0, new \Exception('Another Wrapper', 0, new AccessDeniedException()));
|
|
|
|
+ }
|
|
}
|
|
}
|