Change error message to reflect SecurityContext deprecation.

This commit is contained in:
Nicholas Byfleet 2015-06-05 11:24:39 +12:00 committed by Fabien Potencier
parent 04630ad60e
commit 4212bdaf72

View File

@ -50,7 +50,7 @@ class AccessListener implements ListenerInterface
public function handle(GetResponseEvent $event) public function handle(GetResponseEvent $event)
{ {
if (null === $token = $this->tokenStorage->getToken()) { if (null === $token = $this->tokenStorage->getToken()) {
throw new AuthenticationCredentialsNotFoundException('A Token was not found in the SecurityContext.'); throw new AuthenticationCredentialsNotFoundException('A Token was not found in the TokenStorage.');
} }
$request = $event->getRequest(); $request = $event->getRequest();