Преглед на файлове

Revert "revert exception message"

This reverts commit b637a3190d897e1b6076878ed69d2e4b3a58158d.
Johannes Schmitt преди 14 години
родител
ревизия
1f91e2e618
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/Symfony/Component/Security/Core/SecurityContext.php

+ 1 - 1
src/Symfony/Component/Security/Core/SecurityContext.php

@@ -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.');
+            throw new AuthenticationCredentialsNotFoundException('The security context contains no authentication token. One possible reason may be that there is no firewall configured for this URL.');
         }
 
         if ($this->alwaysAuthenticate || !$this->token->isAuthenticated()) {