diff options
author | realmfoo <konstantin.leboev@gmail.com> | 2011-08-10 10:59:19 +0400 |
---|---|---|
committer | realmfoo <konstantin.leboev@gmail.com> | 2011-08-10 10:59:19 +0400 |
commit | b33e8d2376f20761911faa654d85790d61a29019 (patch) | |
tree | 91ef528a24e416523bb25859a702d8d859a0e2af /Core/Exception | |
parent | 111f1e758a0919556c2c2fdd8fd8779303113f30 (diff) | |
parent | 77b520411cafe3f32f1f52d27dd806ee6110504d (diff) | |
download | symfony-security-b33e8d2376f20761911faa654d85790d61a29019.zip symfony-security-b33e8d2376f20761911faa654d85790d61a29019.tar.gz symfony-security-b33e8d2376f20761911faa654d85790d61a29019.tar.bz2 |
merge from master
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 +} |