summaryrefslogtreecommitdiffstats
path: root/Http
diff options
context:
space:
mode:
authorChristophe Coevoet <stof@notk.org>2011-03-22 23:56:46 +0100
committerChristophe Coevoet <stof@notk.org>2011-03-22 23:56:46 +0100
commit92b6f6f7671feee764570f2585665d460723cad3 (patch)
tree2d3a4e53d1d27fcbc9c92252fd46a8ebc890b092 /Http
parentec9d1f393820c11eec9b12c47f5a96e3ef6e9da5 (diff)
downloadsymfony-security-92b6f6f7671feee764570f2585665d460723cad3.zip
symfony-security-92b6f6f7671feee764570f2585665d460723cad3.tar.gz
symfony-security-92b6f6f7671feee764570f2585665d460723cad3.tar.bz2
[Security] Fixed some listeners not updated after the event refactoring
Diffstat (limited to 'Http')
-rw-r--r--Http/Firewall/BasicAuthenticationListener.php4
-rw-r--r--Http/Firewall/ChannelListener.php4
-rw-r--r--Http/Firewall/DigestAuthenticationListener.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/Http/Firewall/BasicAuthenticationListener.php b/Http/Firewall/BasicAuthenticationListener.php
index efeb963..0551fff 100644
--- a/Http/Firewall/BasicAuthenticationListener.php
+++ b/Http/Firewall/BasicAuthenticationListener.php
@@ -85,9 +85,9 @@ class BasicAuthenticationListener implements ListenerInterface
return;
}
- $event->setProcessed();
+ $event->stopPropagation();
- return $this->authenticationEntryPoint->start($event, $request, $failed);
+ $event->setResponse($this->authenticationEntryPoint->start($request, $failed));
}
}
}
diff --git a/Http/Firewall/ChannelListener.php b/Http/Firewall/ChannelListener.php
index 64176e1..1677a02 100644
--- a/Http/Firewall/ChannelListener.php
+++ b/Http/Firewall/ChannelListener.php
@@ -52,7 +52,7 @@ class ChannelListener implements ListenerInterface
$this->logger->debug('Redirecting to HTTPS');
}
- $response = $this->authenticationEntryPoint->start($event, $request);
+ $response = $this->authenticationEntryPoint->start($request);
$event->setResponse($response);
@@ -64,7 +64,7 @@ class ChannelListener implements ListenerInterface
$this->logger->debug('Redirecting to HTTP');
}
- $response = $this->authenticationEntryPoint->start($event, $request);
+ $response = $this->authenticationEntryPoint->start($request);
$event->setResponse($response);
}
diff --git a/Http/Firewall/DigestAuthenticationListener.php b/Http/Firewall/DigestAuthenticationListener.php
index f550c07..867899e 100644
--- a/Http/Firewall/DigestAuthenticationListener.php
+++ b/Http/Firewall/DigestAuthenticationListener.php
@@ -129,7 +129,7 @@ class DigestAuthenticationListener implements ListenerInterface
$this->logger->debug($authException);
}
- $this->authenticationEntryPoint->start($event, $request, $authException);
+ $event->setResponse($this->authenticationEntryPoint->start($request, $authException));
}
}