diff options
Diffstat (limited to 'Core/Exception')
-rw-r--r-- | Core/Exception/CookieTheftException.php | 2 | ||||
-rw-r--r-- | Core/Exception/InvalidCsrfTokenException.php | 11 | ||||
-rw-r--r-- | Core/Exception/SessionUnavailableException.php | 27 | ||||
-rw-r--r-- | Core/Exception/UnsupportedUserException.php | 2 |
4 files changed, 39 insertions, 3 deletions
diff --git a/Core/Exception/CookieTheftException.php b/Core/Exception/CookieTheftException.php index 83e61d7..09ec79e 100644 --- a/Core/Exception/CookieTheftException.php +++ b/Core/Exception/CookieTheftException.php @@ -19,4 +19,4 @@ namespace Symfony\Component\Security\Core\Exception; */ class CookieTheftException extends AuthenticationException { -}
\ No newline at end of file +} diff --git a/Core/Exception/InvalidCsrfTokenException.php b/Core/Exception/InvalidCsrfTokenException.php index f19bcbf..51adb69 100644 --- a/Core/Exception/InvalidCsrfTokenException.php +++ b/Core/Exception/InvalidCsrfTokenException.php @@ -1,5 +1,14 @@ <?php +/* + * This file is part of the Symfony framework. + * + * (c) Fabien Potencier <fabien@symfony.com> + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + namespace Symfony\Component\Security\Core\Exception; /** @@ -9,4 +18,4 @@ namespace Symfony\Component\Security\Core\Exception; */ class InvalidCsrfTokenException extends AuthenticationException { -}
\ No newline at end of file +} diff --git a/Core/Exception/SessionUnavailableException.php b/Core/Exception/SessionUnavailableException.php new file mode 100644 index 0000000..a00a503 --- /dev/null +++ b/Core/Exception/SessionUnavailableException.php @@ -0,0 +1,27 @@ +<?php + +/* + * This file is part of the Symfony package. + * + * (c) Fabien Potencier <fabien@symfony.com> + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Security\Core\Exception; + +/** + * This exception is thrown when no session is available. + * + * Possible reasons for this are: + * + * a) The session timed-out because the user waited too long. + * b) The user has disabled cookies, and a new session is started on each + * request. + * + * @author Johannes M. Schmitt <schmittjoh@gmail.com> + */ +class SessionUnavailableException extends AuthenticationException +{ +} diff --git a/Core/Exception/UnsupportedUserException.php b/Core/Exception/UnsupportedUserException.php index 5be9bc4..6529fa9 100644 --- a/Core/Exception/UnsupportedUserException.php +++ b/Core/Exception/UnsupportedUserException.php @@ -19,4 +19,4 @@ namespace Symfony\Component\Security\Core\Exception; */ class UnsupportedUserException extends AuthenticationServiceException { -}
\ No newline at end of file +} |