summaryrefslogtreecommitdiffstats
path: root/Exception
diff options
context:
space:
mode:
authorJohannes M. Schmitt <schmittjoh@gmail.com>2011-01-26 21:34:11 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2011-01-26 22:23:20 +0100
commitbebc09870cb0a7720e2c6a8c5c74585e69e8bb24 (patch)
tree0c399647cdbe504be405017e7cc04c70c53482f2 /Exception
parentc85f3d708d2c9b00d73ca1234ccfaf50336d94b1 (diff)
downloadsymfony-security-bebc09870cb0a7720e2c6a8c5c74585e69e8bb24.zip
symfony-security-bebc09870cb0a7720e2c6a8c5c74585e69e8bb24.tar.gz
symfony-security-bebc09870cb0a7720e2c6a8c5c74585e69e8bb24.tar.bz2
namespace changes
Symfony\Component\Security -> Symfony\Component\Security\Core Symfony\Component\Security\Acl remains unchanged Symfony\Component\HttpKernel\Security -> Symfony\Component\Security\Http
Diffstat (limited to 'Exception')
-rw-r--r--Exception/AccessDeniedException.php25
-rw-r--r--Exception/AccountExpiredException.php21
-rw-r--r--Exception/AccountStatusException.php22
-rw-r--r--Exception/AuthenticationCredentialsNotFoundException.php22
-rw-r--r--Exception/AuthenticationException.php39
-rw-r--r--Exception/AuthenticationServiceException.php21
-rw-r--r--Exception/BadCredentialsException.php25
-rw-r--r--Exception/CookieTheftException.php22
-rw-r--r--Exception/CredentialsExpiredException.php21
-rw-r--r--Exception/DisabledException.php21
-rw-r--r--Exception/InsufficientAuthenticationException.php23
-rw-r--r--Exception/LockedException.php21
-rw-r--r--Exception/NonceExpiredException.php27
-rw-r--r--Exception/ProviderNotFoundException.php22
-rw-r--r--Exception/TokenNotFoundException.php20
-rw-r--r--Exception/UnsupportedAccountException.php22
-rw-r--r--Exception/UsernameNotFoundException.php21
17 files changed, 0 insertions, 395 deletions
diff --git a/Exception/AccessDeniedException.php b/Exception/AccessDeniedException.php
deleted file mode 100644
index 67e2984..0000000
--- a/Exception/AccessDeniedException.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * AccessDeniedException is thrown when the account has not the required role.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class AccessDeniedException extends \RuntimeException
-{
- public function __construct($message = 'Access Denied', \Exception $previous = null)
- {
- parent::__construct($message, 403, $previous);
- }
-}
diff --git a/Exception/AccountExpiredException.php b/Exception/AccountExpiredException.php
deleted file mode 100644
index 8558edf..0000000
--- a/Exception/AccountExpiredException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * AccountExpiredException is thrown when the user account has expired.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class AccountExpiredException extends AccountStatusException
-{
-}
diff --git a/Exception/AccountStatusException.php b/Exception/AccountStatusException.php
deleted file mode 100644
index f00a110..0000000
--- a/Exception/AccountStatusException.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * AccountStatusException is the base class for authentication exceptions
- * caused by the user account status.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-abstract class AccountStatusException extends AuthenticationException
-{
-}
diff --git a/Exception/AuthenticationCredentialsNotFoundException.php b/Exception/AuthenticationCredentialsNotFoundException.php
deleted file mode 100644
index d4d62a2..0000000
--- a/Exception/AuthenticationCredentialsNotFoundException.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * AuthenticationCredentialsNotFoundException is thrown when an authentication is rejected
- * because no Token is available.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class AuthenticationCredentialsNotFoundException extends AuthenticationException
-{
-}
diff --git a/Exception/AuthenticationException.php b/Exception/AuthenticationException.php
deleted file mode 100644
index 59203b6..0000000
--- a/Exception/AuthenticationException.php
+++ /dev/null
@@ -1,39 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * AuthenticationException is the base class for all authentication exceptions.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class AuthenticationException extends \RuntimeException
-{
- protected $extraInformation;
-
- public function __construct($message, $extraInformation = null, $code = 0, \Exception $previous = null)
- {
- parent::__construct($message, $code, $previous);
-
- $this->extraInformation = $extraInformation;
- }
-
- public function getExtraInformation()
- {
- return $this->extraInformation;
- }
-
- public function setExtraInformation($extraInformation)
- {
- $this->extraInformation = $extraInformation;
- }
-}
diff --git a/Exception/AuthenticationServiceException.php b/Exception/AuthenticationServiceException.php
deleted file mode 100644
index c1b34dd..0000000
--- a/Exception/AuthenticationServiceException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * AuthenticationServiceException is thrown when an authentication request could not be processed due to a system problem.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class AuthenticationServiceException extends AuthenticationException
-{
-}
diff --git a/Exception/BadCredentialsException.php b/Exception/BadCredentialsException.php
deleted file mode 100644
index 9319041..0000000
--- a/Exception/BadCredentialsException.php
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * BadCredentialsException is thrown when the user credentials are invalid.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class BadCredentialsException extends AuthenticationException
-{
- public function __construct($message, $code = 0, \Exception $previous = null)
- {
- parent::__construct($message, null, $code, $previous);
- }
-}
diff --git a/Exception/CookieTheftException.php b/Exception/CookieTheftException.php
deleted file mode 100644
index a69ccdf..0000000
--- a/Exception/CookieTheftException.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-namespace Symfony\Component\Security\Exception;
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * This exception is thrown when the RememberMeServices implementation
- * detects that a presented cookie has already been used by someone else.
- *
- * @author Johannes M. Schmitt <schmittjoh@gmail.com>
- */
-class CookieTheftException extends AuthenticationException
-{
-} \ No newline at end of file
diff --git a/Exception/CredentialsExpiredException.php b/Exception/CredentialsExpiredException.php
deleted file mode 100644
index 8a90e3e..0000000
--- a/Exception/CredentialsExpiredException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * CredentialsExpiredException is thrown when the user account credentials have expired.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class CredentialsExpiredException extends AccountStatusException
-{
-}
diff --git a/Exception/DisabledException.php b/Exception/DisabledException.php
deleted file mode 100644
index 440d20e..0000000
--- a/Exception/DisabledException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * DisabledException is thrown when the user account is disabled.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class DisabledException extends AccountStatusException
-{
-}
diff --git a/Exception/InsufficientAuthenticationException.php b/Exception/InsufficientAuthenticationException.php
deleted file mode 100644
index c0c5167..0000000
--- a/Exception/InsufficientAuthenticationException.php
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * InsufficientAuthenticationException is thrown if the user credentials are not sufficiently trusted.
- *
- * This is the case when a user is anonymous and the resource to be displayed has an access role.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class InsufficientAuthenticationException extends AuthenticationException
-{
-}
diff --git a/Exception/LockedException.php b/Exception/LockedException.php
deleted file mode 100644
index 3b52ac7..0000000
--- a/Exception/LockedException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * LockedException is thrown if the user account is locked.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class LockedException extends AccountStatusException
-{
-}
diff --git a/Exception/NonceExpiredException.php b/Exception/NonceExpiredException.php
deleted file mode 100644
index 931f6a2..0000000
--- a/Exception/NonceExpiredException.php
+++ /dev/null
@@ -1,27 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\HttpKernel\Security\EntryPoint;
-
-use Symfony\Component\Security\Exception\AuthenticationException;
-use Symfony\Component\Security\Authentication\EntryPoint\AuthenticationEntryPointInterface;
-use Symfony\Component\HttpFoundation\Response;
-use Symfony\Component\HttpKernel\Log\LoggerInterface;
-
-/**
- * NonceExpiredException is thrown when an authentication is rejected because
- * the digest nonce has expired.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class NonceExpiredException extends AuthenticationException
-{
-}
diff --git a/Exception/ProviderNotFoundException.php b/Exception/ProviderNotFoundException.php
deleted file mode 100644
index 31a0b72..0000000
--- a/Exception/ProviderNotFoundException.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * ProviderNotFoundException is thrown when no AuthenticationProviderInterface instance
- * supports an authentication Token.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class ProviderNotFoundException extends AuthenticationException
-{
-}
diff --git a/Exception/TokenNotFoundException.php b/Exception/TokenNotFoundException.php
deleted file mode 100644
index 65d2d2a..0000000
--- a/Exception/TokenNotFoundException.php
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-namespace Symfony\Component\Security\Exception;
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-/**
- * TokenNotFoundException is thrown if a Token cannot be found.
- *
- * @author Johannes M. Schmitt <schmittjoh@gmail.com>
- */
-class TokenNotFoundException extends AuthenticationException
-{
-}
diff --git a/Exception/UnsupportedAccountException.php b/Exception/UnsupportedAccountException.php
deleted file mode 100644
index 723e397..0000000
--- a/Exception/UnsupportedAccountException.php
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * This exception is thrown when an account is reloaded from a provider which
- * doesn't support the passed implementation of AccountInterface.
- *
- * @author Johannes M. Schmitt <schmittjoh@gmail.com>
- */
-class UnsupportedAccountException extends AuthenticationServiceException
-{
-} \ No newline at end of file
diff --git a/Exception/UsernameNotFoundException.php b/Exception/UsernameNotFoundException.php
deleted file mode 100644
index c6fcb18..0000000
--- a/Exception/UsernameNotFoundException.php
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Security\Exception;
-
-/**
- * UsernameNotFoundException is thrown if a User cannot be found by its username.
- *
- * @author Fabien Potencier <fabien.potencier@symfony-project.com>
- */
-class UsernameNotFoundException extends AuthenticationException
-{
-}