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:
commit
d1404a6c34
@ -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();
|
||||||
|
Reference in New Issue
Block a user