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
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class AccessListener implements ListenerInterface
public function handle(GetResponseEvent $event)
{
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();