diff options
Diffstat (limited to 'Core/Exception')
-rw-r--r-- | Core/Exception/CookieTheftException.php | 4 | ||||
-rw-r--r-- | Core/Exception/InvalidCsrfTokenException.php | 6 | ||||
-rw-r--r-- | Core/Exception/LogoutException.php | 25 | ||||
-rw-r--r-- | Core/Exception/SessionUnavailableException.php | 2 |
4 files changed, 31 insertions, 6 deletions
diff --git a/Core/Exception/CookieTheftException.php b/Core/Exception/CookieTheftException.php index 09ec79e..2ada78d 100644 --- a/Core/Exception/CookieTheftException.php +++ b/Core/Exception/CookieTheftException.php @@ -1,7 +1,5 @@ <?php -namespace Symfony\Component\Security\Core\Exception; - /* * This file is part of the Symfony package. * @@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Core\Exception; * file that was distributed with this source code. */ +namespace Symfony\Component\Security\Core\Exception; + /** * This exception is thrown when the RememberMeServices implementation * detects that a presented cookie has already been used by someone else. diff --git a/Core/Exception/InvalidCsrfTokenException.php b/Core/Exception/InvalidCsrfTokenException.php index 51adb69..4181bac 100644 --- a/Core/Exception/InvalidCsrfTokenException.php +++ b/Core/Exception/InvalidCsrfTokenException.php @@ -1,12 +1,12 @@ <?php /* - * This file is part of the Symfony framework. + * This file is part of the Symfony package. * * (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. + * 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; diff --git a/Core/Exception/LogoutException.php b/Core/Exception/LogoutException.php new file mode 100644 index 0000000..2bb954f --- /dev/null +++ b/Core/Exception/LogoutException.php @@ -0,0 +1,25 @@ +<?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; + +/** + * LogoutException is thrown when the account cannot be logged out. + * + * @author Jeremy Mikola <jmikola@gmail.com> + */ +class LogoutException extends \RuntimeException +{ + public function __construct($message = 'Logout Exception', \Exception $previous = null) + { + parent::__construct($message, 403, $previous); + } +} diff --git a/Core/Exception/SessionUnavailableException.php b/Core/Exception/SessionUnavailableException.php index a00a503..519164a 100644 --- a/Core/Exception/SessionUnavailableException.php +++ b/Core/Exception/SessionUnavailableException.php @@ -16,7 +16,7 @@ namespace Symfony\Component\Security\Core\Exception; * * Possible reasons for this are: * - * a) The session timed-out because the user waited too long. + * 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. * |