minor #14884 Change error message to reflect SecurityContext deprecation. (nickbyfleet)

This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #14884).

Discussion
----------

Change error message to reflect SecurityContext deprecation.

This PR was submitted on the symfony/Security read-only repository by @nickbyfleet and moved automatically to the main Symfony repository (closes symfony/Security#6).

Commits
-------

4212bda Change error message to reflect SecurityContext deprecation.
This commit is contained in:
Fabien Potencier 2015-06-05 21:57:46 +02:00
commit d1404a6c34
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();