revert exception message

This commit is contained in:
Johannes Schmitt 2011-05-14 13:21:09 +02:00
parent eb1b7f1e46
commit b637a3190d

View File

@ -58,7 +58,7 @@ class SecurityContext implements SecurityContextInterface
public final function isGranted($attributes, $object = null)
{
if (null === $this->token) {
throw new AuthenticationCredentialsNotFoundException('The security context contains no authentication token. One possible reason may be that there is no firewall configured for this URL.');
throw new AuthenticationCredentialsNotFoundException('The security context contains no authentication token.');
}
if ($this->alwaysAuthenticate || !$this->token->isAuthenticated()) {