Merge remote branch 'stof/security_events'

* stof/security_events:
  [Security] Removed useless method call
  [Security] Fixed some listeners not updated after the event refactoring
This commit is contained in:
Fabien Potencier 2011-03-23 07:08:13 +01:00
commit 1479c25a8a
3 changed files with 4 additions and 6 deletions

View File

@ -85,9 +85,7 @@ class BasicAuthenticationListener implements ListenerInterface
return; return;
} }
$event->setProcessed(); $event->setResponse($this->authenticationEntryPoint->start($request, $failed));
return $this->authenticationEntryPoint->start($event, $request, $failed);
} }
} }
} }

View File

@ -52,7 +52,7 @@ class ChannelListener implements ListenerInterface
$this->logger->debug('Redirecting to HTTPS'); $this->logger->debug('Redirecting to HTTPS');
} }
$response = $this->authenticationEntryPoint->start($event, $request); $response = $this->authenticationEntryPoint->start($request);
$event->setResponse($response); $event->setResponse($response);
@ -64,7 +64,7 @@ class ChannelListener implements ListenerInterface
$this->logger->debug('Redirecting to HTTP'); $this->logger->debug('Redirecting to HTTP');
} }
$response = $this->authenticationEntryPoint->start($event, $request); $response = $this->authenticationEntryPoint->start($request);
$event->setResponse($response); $event->setResponse($response);
} }

View File

@ -129,7 +129,7 @@ class DigestAuthenticationListener implements ListenerInterface
$this->logger->debug($authException); $this->logger->debug($authException);
} }
$this->authenticationEntryPoint->start($event, $request, $authException); $event->setResponse($this->authenticationEntryPoint->start($request, $authException));
} }
} }