diff --git a/src/Symfony/Component/Security/Http/Authentication/AuthenticationFailureHandlerInterface.php b/src/Symfony/Component/Security/Http/Authentication/AuthenticationFailureHandlerInterface.php index e2d8eb260b..02db734f0f 100644 --- a/src/Symfony/Component/Security/Http/Authentication/AuthenticationFailureHandlerInterface.php +++ b/src/Symfony/Component/Security/Http/Authentication/AuthenticationFailureHandlerInterface.php @@ -22,7 +22,7 @@ interface AuthenticationFailureHandlerInterface * called by authentication listeners inheriting from * AbstractAuthenticationListener. * - * @param GetResponseEvent $event the "onCoreSecurity" event, this event always + * @param GetResponseEvent $event the "onCoreRequest" event, this event always * has the kernel as target * @param Request $request * @param AuthenticationException $exception diff --git a/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php b/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php index d7f8488ebf..0af47c95d5 100644 --- a/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php +++ b/src/Symfony/Component/Security/Http/Authentication/AuthenticationSuccessHandlerInterface.php @@ -22,7 +22,7 @@ interface AuthenticationSuccessHandlerInterface * is called by authentication listeners inheriting from * AbstractAuthenticationListener. * - * @param GetResponseEvent $event the "onCoreSecurity" event, this event always + * @param GetResponseEvent $event the "onCoreRequest" event, this event always * has the kernel as target * @param Request $request * @param TokenInterface $token diff --git a/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php b/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php index 0cf6240d4a..3095b5cac0 100644 --- a/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php +++ b/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php @@ -26,7 +26,7 @@ interface AuthenticationEntryPointInterface /** * Starts the authentication scheme. * - * @param GetResponseEvent $event The "onCoreSecurity" event + * @param GetResponseEvent $event The "onCoreRequest" event * @param object $request The request that resulted in an AuthenticationException * @param AuthenticationException $authException The exception that started the authentication process */ diff --git a/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php index 506d49e382..b3d2af9cea 100644 --- a/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/AbstractAuthenticationListener.php @@ -107,7 +107,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public final function onCoreSecurity(GetResponseEvent $event) + public final function handle(GetResponseEvent $event) { $request = $event->getRequest(); diff --git a/src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php b/src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php index 49039cd704..7bb4e0d896 100644 --- a/src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/AbstractPreAuthenticatedListener.php @@ -52,7 +52,7 @@ abstract class AbstractPreAuthenticatedListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public final function onCoreSecurity(GetResponseEvent $event) + public final function handle(GetResponseEvent $event) { $request = $event->getRequest(); diff --git a/src/Symfony/Component/Security/Http/Firewall/AccessListener.php b/src/Symfony/Component/Security/Http/Firewall/AccessListener.php index 02c5e71f3b..bbcd9329aa 100644 --- a/src/Symfony/Component/Security/Http/Firewall/AccessListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/AccessListener.php @@ -48,7 +48,7 @@ class AccessListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { if (null === $token = $this->context->getToken()) { throw new AuthenticationCredentialsNotFoundException('A Token was not found in the SecurityContext.'); diff --git a/src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php index 26d6464d63..c5c2376d23 100644 --- a/src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/AnonymousAuthenticationListener.php @@ -41,7 +41,7 @@ class AnonymousAuthenticationListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { if (null !== $this->context->getToken()) { return; diff --git a/src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php index 002e292712..efeb963e78 100644 --- a/src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/BasicAuthenticationListener.php @@ -53,7 +53,7 @@ class BasicAuthenticationListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { $request = $event->getRequest(); diff --git a/src/Symfony/Component/Security/Http/Firewall/ChannelListener.php b/src/Symfony/Component/Security/Http/Firewall/ChannelListener.php index 4abe7b755d..64176e1ad5 100644 --- a/src/Symfony/Component/Security/Http/Firewall/ChannelListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/ChannelListener.php @@ -41,7 +41,7 @@ class ChannelListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { $request = $event->getRequest(); diff --git a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php index cc49c8e022..2adbf41fa3 100644 --- a/src/Symfony/Component/Security/Http/Firewall/ContextListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/ContextListener.php @@ -58,7 +58,7 @@ class ContextListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { $request = $event->getRequest(); diff --git a/src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php b/src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php index f2f925fb27..f550c07d8e 100644 --- a/src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/DigestAuthenticationListener.php @@ -56,7 +56,7 @@ class DigestAuthenticationListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { $request = $event->getRequest(); diff --git a/src/Symfony/Component/Security/Http/Firewall/ListenerInterface.php b/src/Symfony/Component/Security/Http/Firewall/ListenerInterface.php index e451103930..9d5084ef3f 100644 --- a/src/Symfony/Component/Security/Http/Firewall/ListenerInterface.php +++ b/src/Symfony/Component/Security/Http/Firewall/ListenerInterface.php @@ -26,5 +26,5 @@ interface ListenerInterface * * @param GetResponseEvent $event */ - function onCoreSecurity(GetResponseEvent $event); + function handle(GetResponseEvent $event); } \ No newline at end of file diff --git a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php index 18b37f3e92..ce757c8b44 100644 --- a/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/LogoutListener.php @@ -65,7 +65,7 @@ class LogoutListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { $request = $event->getRequest(); diff --git a/src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php b/src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php index 0706410f56..6b59c21c7a 100644 --- a/src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/RememberMeListener.php @@ -62,7 +62,7 @@ class RememberMeListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { if (null !== $this->securityContext->getToken()) { return; diff --git a/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php b/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php index c95ff0d2b0..71cae95d96 100644 --- a/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php +++ b/src/Symfony/Component/Security/Http/Firewall/SwitchUserListener.php @@ -73,7 +73,7 @@ class SwitchUserListener implements ListenerInterface * * @param GetResponseEvent $event A GetResponseEvent instance */ - public function onCoreSecurity(GetResponseEvent $event) + public function handle(GetResponseEvent $event) { $request = $event->getRequest(); diff --git a/tests/Symfony/Tests/Component/Security/Http/Firewall/RememberMeListenerTest.php b/tests/Symfony/Tests/Component/Security/Http/Firewall/RememberMeListenerTest.php index 1505d2d2e4..f0b2b395c5 100644 --- a/tests/Symfony/Tests/Component/Security/Http/Firewall/RememberMeListenerTest.php +++ b/tests/Symfony/Tests/Component/Security/Http/Firewall/RememberMeListenerTest.php @@ -27,7 +27,7 @@ class RememberMeListenerTest extends \PHPUnit_Framework_TestCase ->method('setToken') ; - $this->assertNull($listener->onCoreSecurity($this->getGetResponseEvent())); + $this->assertNull($listener->handle($this->getGetResponseEvent())); } public function testOnCoreSecurityDoesNothingWhenNoCookieIsSet() @@ -53,7 +53,7 @@ class RememberMeListenerTest extends \PHPUnit_Framework_TestCase ->will($this->returnValue(new Request())) ; - $this->assertNull($listener->onCoreSecurity($event)); + $this->assertNull($listener->handle($event)); } public function testOnCoreSecurityIgnoresAuthenticationExceptionThrownByAuthenticationManagerImplementation() @@ -91,7 +91,7 @@ class RememberMeListenerTest extends \PHPUnit_Framework_TestCase ->will($this->returnValue(new Request())) ; - $listener->onCoreSecurity($event); + $listener->handle($event); } public function testOnCoreSecurity() @@ -130,7 +130,7 @@ class RememberMeListenerTest extends \PHPUnit_Framework_TestCase ->will($this->returnValue(new Request())) ; - $listener->onCoreSecurity($event); + $listener->handle($event); } protected function getGetResponseEvent()