summaryrefslogtreecommitdiffstats
path: root/Http/Firewall
diff options
context:
space:
mode:
Diffstat (limited to 'Http/Firewall')
-rw-r--r--Http/Firewall/AbstractAuthenticationListener.php4
-rw-r--r--Http/Firewall/ExceptionListener.php8
-rw-r--r--Http/Firewall/LogoutListener.php2
3 files changed, 7 insertions, 7 deletions
diff --git a/Http/Firewall/AbstractAuthenticationListener.php b/Http/Firewall/AbstractAuthenticationListener.php
index c36fbad..d206af5 100644
--- a/Http/Firewall/AbstractAuthenticationListener.php
+++ b/Http/Firewall/AbstractAuthenticationListener.php
@@ -174,7 +174,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
$this->securityContext->setToken(null);
if (null !== $this->failureHandler) {
- return $this->failureHandler->onAuthenticationFailure($event, $request, $failed);
+ return $this->failureHandler->onAuthenticationFailure($request, $failed);
}
if (null === $this->options['failure_path']) {
@@ -219,7 +219,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
}
if (null !== $this->successHandler) {
- $response = $this->successHandler->onAuthenticationSuccess($event, $request, $token);
+ $response = $this->successHandler->onAuthenticationSuccess($request, $token);
} else {
$path = $this->determineTargetUrl($request);
$response = new RedirectResponse(0 !== strpos($path, 'http') ? $request->getUriForPath($path) : $path, 302);
diff --git a/Http/Firewall/ExceptionListener.php b/Http/Firewall/ExceptionListener.php
index efe29f4..d791bac 100644
--- a/Http/Firewall/ExceptionListener.php
+++ b/Http/Firewall/ExceptionListener.php
@@ -78,7 +78,7 @@ class ExceptionListener
}
try {
- $response = $this->startAuthentication($event, $request, $exception);
+ $response = $this->startAuthentication($request, $exception);
} catch (\Exception $e) {
$event->set('exception', $e);
@@ -92,7 +92,7 @@ class ExceptionListener
}
try {
- $response = $this->startAuthentication($event, $request, new InsufficientAuthenticationException('Full authentication is required to access this resource.', $token, 0, $exception));
+ $response = $this->startAuthentication($request, new InsufficientAuthenticationException('Full authentication is required to access this resource.', $token, 0, $exception));
} catch (\Exception $e) {
$event->set('exception', $e);
@@ -105,7 +105,7 @@ class ExceptionListener
try {
if (null !== $this->accessDeniedHandler) {
- $response = $this->accessDeniedHandler->handle($event, $request, $exception);
+ $response = $this->accessDeniedHandler->handle($request, $exception);
if (!$response instanceof Response) {
return;
@@ -155,6 +155,6 @@ class ExceptionListener
$request->getSession()->set('_security.target_path', $request->getUri());
}
- return $this->authenticationEntryPoint->start($event, $request, $authException);
+ return $this->authenticationEntryPoint->start($request, $authException);
}
}
diff --git a/Http/Firewall/LogoutListener.php b/Http/Firewall/LogoutListener.php
index 60572eb..67c43d5 100644
--- a/Http/Firewall/LogoutListener.php
+++ b/Http/Firewall/LogoutListener.php
@@ -74,7 +74,7 @@ class LogoutListener implements ListenerInterface
}
if (null !== $this->successHandler) {
- $response = $this->successHandler->onLogoutSuccess($event, $request);
+ $response = $this->successHandler->onLogoutSuccess($request);
if (!$response instanceof Response) {
throw new \RuntimeException('Logout Success Handler did not return a Response.');