Fixing failure on forward which was broken by Event refactoring

This commit is contained in:
Miha Vrhovnik 2011-03-19 13:06:52 +01:00
parent 38a851539f
commit e35832ef2d

View File

@ -189,7 +189,7 @@ abstract class AbstractAuthenticationListener implements ListenerInterface
$subRequest = Request::create($this->options['failure_path']); $subRequest = Request::create($this->options['failure_path']);
$subRequest->attributes->set(SecurityContextInterface::AUTHENTICATION_ERROR, $failed); $subRequest->attributes->set(SecurityContextInterface::AUTHENTICATION_ERROR, $failed);
return $event->getSubject()->handle($subRequest, HttpKernelInterface::SUB_REQUEST); return $event->getKernel()->handle($subRequest, HttpKernelInterface::SUB_REQUEST);
} }
if (null !== $this->logger) { if (null !== $this->logger) {