summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
Diffstat (limited to 'Http')
-rw-r--r--Http/Authorization/AccessDeniedHandlerInterface.php11
-rw-r--r--Http/Firewall/AbstractAuthenticationListener.php2
-rw-r--r--Http/Firewall/ExceptionListener.php7
3 files changed, 12 insertions, 8 deletions
diff --git a/Http/Authorization/AccessDeniedHandlerInterface.php b/Http/Authorization/AccessDeniedHandlerInterface.php
index 8474fce..c33353b 100644
--- a/Http/Authorization/AccessDeniedHandlerInterface.php
+++ b/Http/Authorization/AccessDeniedHandlerInterface.php
@@ -5,6 +5,7 @@ namespace Symfony\Component\Security\Http\Authorization;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
+use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
/**
* This is used by the ExceptionListener to translate an AccessDeniedException
@@ -17,11 +18,11 @@ interface AccessDeniedHandlerInterface
/**
* Handles an access denied failure.
*
- * @param ExceptionEvent $event
- * @param Request $request
- * @param AccessDeniedException $accessDeniedException
+ * @param GetResponseForExceptionEvent $event
+ * @param Request $request
+ * @param AccessDeniedException $accessDeniedException
*
* @return Response may return null
*/
- function handle(ExceptionEvent $event, Request $request, AccessDeniedException $accessDeniedException);
-} \ No newline at end of file
+ function handle(GetResponseForExceptionEvent $event, Request $request, AccessDeniedException $accessDeniedException);
+}
diff --git a/Http/Firewall/AbstractAuthenticationListener.php b/Http/Firewall/AbstractAuthenticationListener.php
index 8915c25..c36fbad 100644
--- a/Http/Firewall/AbstractAuthenticationListener.php
+++ b/Http/Firewall/AbstractAuthenticationListener.php
@@ -27,6 +27,8 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
+use Symfony\Component\Security\Http\Event\InteractiveLoginEvent;
+use Symfony\Component\Security\Http\Events;
/**
* The AbstractAuthenticationListener is the preferred base class for all
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php
index 0b4b1f0..efe29f4 100644
--- a/Http/Firewall/ExceptionListener.php
+++ b/Http/Firewall/ExceptionListener.php
@@ -24,6 +24,7 @@ use Symfony\Component\Security\Core\Exception\InsufficientAuthenticationExceptio
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Events;
+use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
/**
@@ -64,9 +65,9 @@ class ExceptionListener
/**
* Handles security related exceptions.
*
- * @param ExceptionEvent $event An ExceptionEvent instance
+ * @param GetResponseForExceptionEvent $event An GetResponseForExceptionEvent instance
*/
- public function onCoreException(ExceptionEvent $event)
+ public function onCoreException(GetResponseForExceptionEvent $event)
{
$exception = $event->getException();
$request = $event->getRequest();
@@ -137,7 +138,7 @@ class ExceptionListener
$event->setResponse($response);
}
- private function startAuthentication(ExceptionEvent $event, Request $request, AuthenticationException $authException)
+ private function startAuthentication(GetResponseForExceptionEvent $event, Request $request, AuthenticationException $authException)
{
$this->context->setToken(null);