summaryrefslogtreecommitdiffstats
path: root/Http/EntryPoint/BasicAuthenticationEntryPoint.php
diff options
context:
space:
mode:
authorBernhard Schussek <bernhard.schussek@symfony-project.com>2011-03-07 15:42:52 +0100
committerBernhard Schussek <bernhard.schussek@symfony-project.com>2011-03-07 19:16:05 +0100
commit4a5d6729bc8c7f4adc89c153606617390bb24ca4 (patch)
treee31633b8ef04acfc224c6649d4656e380b6f6b25 /Http/EntryPoint/BasicAuthenticationEntryPoint.php
parentdb1564445584b2bf354558534efa6532e8cb3959 (diff)
downloadsymfony-security-4a5d6729bc8c7f4adc89c153606617390bb24ca4.zip
symfony-security-4a5d6729bc8c7f4adc89c153606617390bb24ca4.tar.gz
symfony-security-4a5d6729bc8c7f4adc89c153606617390bb24ca4.tar.bz2
Renamed EventArgs classes and adapted remaining code to EventManager
The only missing part is ContainerAwareEventManager::addEventSubscriberService(), because I'm not sure how to find out the class name of a service in the DIC. Also, inline documentation of this code needs to be finished once it is accepted.
Diffstat (limited to 'Http/EntryPoint/BasicAuthenticationEntryPoint.php')
-rw-r--r--Http/EntryPoint/BasicAuthenticationEntryPoint.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Http/EntryPoint/BasicAuthenticationEntryPoint.php b/Http/EntryPoint/BasicAuthenticationEntryPoint.php
index 95a2147..968986c 100644
--- a/Http/EntryPoint/BasicAuthenticationEntryPoint.php
+++ b/Http/EntryPoint/BasicAuthenticationEntryPoint.php
@@ -15,7 +15,7 @@ use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\HttpKernel\Event\RequestEventArgs;
+use Symfony\Component\HttpKernel\Event\GetResponseEventArgs;
/**
* BasicAuthenticationEntryPoint starts an HTTP Basic authentication.
@@ -31,7 +31,7 @@ class BasicAuthenticationEntryPoint implements AuthenticationEntryPointInterface
$this->realmName = $realmName;
}
- public function start(RequestEventArgs $event, Request $request, AuthenticationException $authException = null)
+ public function start(GetResponseEventArgs $event, Request $request, AuthenticationException $authException = null)
{
$response = new Response();
$response->headers->set('WWW-Authenticate', sprintf('Basic realm="%s"', $this->realmName));