summaryrefslogtreecommitdiffstats
path: root/Exception
diff options
context:
space:
mode:
Diffstat (limited to 'Exception')
-rw-r--r--Exception/AccessDeniedException.php4
-rw-r--r--Exception/AccountExpiredException.php4
-rw-r--r--Exception/AccountStatusException.php4
-rw-r--r--Exception/AuthenticationCredentialsNotFoundException.php4
-rw-r--r--Exception/AuthenticationException.php4
-rw-r--r--Exception/AuthenticationServiceException.php4
-rw-r--r--Exception/BadCredentialsException.php4
-rw-r--r--Exception/CredentialsExpiredException.php4
-rw-r--r--Exception/DisabledException.php4
-rw-r--r--Exception/InsufficientAuthenticationException.php4
-rw-r--r--Exception/LockedException.php4
-rw-r--r--Exception/NonceExpiredException.php18
-rw-r--r--Exception/ProviderNotFoundException.php4
-rw-r--r--Exception/UnsupportedAccountException.php9
-rw-r--r--Exception/UsernameNotFoundException.php4
15 files changed, 44 insertions, 35 deletions
diff --git a/Exception/AccessDeniedException.php b/Exception/AccessDeniedException.php
index 9dde809..67e2984 100644
--- a/Exception/AccessDeniedException.php
+++ b/Exception/AccessDeniedException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* AccessDeniedException is thrown when the account has not the required role.
*
diff --git a/Exception/AccountExpiredException.php b/Exception/AccountExpiredException.php
index d61a191..8558edf 100644
--- a/Exception/AccountExpiredException.php
+++ b/Exception/AccountExpiredException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* AccountExpiredException is thrown when the user account has expired.
*
diff --git a/Exception/AccountStatusException.php b/Exception/AccountStatusException.php
index 4c06cbf..f00a110 100644
--- a/Exception/AccountStatusException.php
+++ b/Exception/AccountStatusException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* 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.
diff --git a/Exception/AuthenticationCredentialsNotFoundException.php b/Exception/AuthenticationCredentialsNotFoundException.php
index 76cfc5e..d4d62a2 100644
--- a/Exception/AuthenticationCredentialsNotFoundException.php
+++ b/Exception/AuthenticationCredentialsNotFoundException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* 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.
diff --git a/Exception/AuthenticationException.php b/Exception/AuthenticationException.php
index 3d03376..59203b6 100644
--- a/Exception/AuthenticationException.php
+++ b/Exception/AuthenticationException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* AuthenticationException is the base class for all authentication exceptions.
*
diff --git a/Exception/AuthenticationServiceException.php b/Exception/AuthenticationServiceException.php
index bf10449..c1b34dd 100644
--- a/Exception/AuthenticationServiceException.php
+++ b/Exception/AuthenticationServiceException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* 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.
*
diff --git a/Exception/BadCredentialsException.php b/Exception/BadCredentialsException.php
index 3e6ddf8..9319041 100644
--- a/Exception/BadCredentialsException.php
+++ b/Exception/BadCredentialsException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* BadCredentialsException is thrown when the user credentials are invalid.
*
diff --git a/Exception/CredentialsExpiredException.php b/Exception/CredentialsExpiredException.php
index 480031c..8a90e3e 100644
--- a/Exception/CredentialsExpiredException.php
+++ b/Exception/CredentialsExpiredException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* CredentialsExpiredException is thrown when the user account credentials have expired.
*
diff --git a/Exception/DisabledException.php b/Exception/DisabledException.php
index 4d853d7..440d20e 100644
--- a/Exception/DisabledException.php
+++ b/Exception/DisabledException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* DisabledException is thrown when the user account is disabled.
*
diff --git a/Exception/InsufficientAuthenticationException.php b/Exception/InsufficientAuthenticationException.php
index e2d2fcd..c0c5167 100644
--- a/Exception/InsufficientAuthenticationException.php
+++ b/Exception/InsufficientAuthenticationException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* InsufficientAuthenticationException is thrown if the user credentials are not sufficiently trusted.
*
diff --git a/Exception/LockedException.php b/Exception/LockedException.php
index 7e801e3..3b52ac7 100644
--- a/Exception/LockedException.php
+++ b/Exception/LockedException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* LockedException is thrown if the user account is locked.
*
diff --git a/Exception/NonceExpiredException.php b/Exception/NonceExpiredException.php
index 42fc21b..931f6a2 100644
--- a/Exception/NonceExpiredException.php
+++ b/Exception/NonceExpiredException.php
@@ -1,5 +1,14 @@
<?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;
@@ -7,15 +16,6 @@ use Symfony\Component\Security\Authentication\EntryPoint\AuthenticationEntryPoin
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
-/*
- * This file is part of the Symfony framework.
- *
- * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
-
/**
* NonceExpiredException is thrown when an authentication is rejected because
* the digest nonce has expired.
diff --git a/Exception/ProviderNotFoundException.php b/Exception/ProviderNotFoundException.php
index 257ebfa..31a0b72 100644
--- a/Exception/ProviderNotFoundException.php
+++ b/Exception/ProviderNotFoundException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Exception;
+
/**
* ProviderNotFoundException is thrown when no AuthenticationProviderInterface instance
* supports an authentication Token.
diff --git a/Exception/UnsupportedAccountException.php b/Exception/UnsupportedAccountException.php
index 841e0b7..723e397 100644
--- a/Exception/UnsupportedAccountException.php
+++ b/Exception/UnsupportedAccountException.php
@@ -1,5 +1,14 @@
<?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;
/**
diff --git a/Exception/UsernameNotFoundException.php b/Exception/UsernameNotFoundException.php
index f126c23..c6fcb18 100644
--- a/Exception/UsernameNotFoundException.php
+++ b/Exception/UsernameNotFoundException.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Exception;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Exception;
* 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.
*