summaryrefslogtreecommitdiffstats
path: root/Authentication
diff options
context:
space:
mode:
authorDominique Bongiraud <doume031@wanadoo.fr>2011-01-15 14:29:43 +0100
committerFabien Potencier <fabien.potencier@gmail.com>2011-01-18 08:07:46 +0100
commitb42447160cc359b2747ff2b464c3ce25f48a3787 (patch)
treef29f8f9a69bcd4ed46265c06220638bf45f4f386 /Authentication
parentb63e571ba8edb2c24ceb9bcc3c3336e34d8ac4a7 (diff)
downloadsymfony-security-b42447160cc359b2747ff2b464c3ce25f48a3787.zip
symfony-security-b42447160cc359b2747ff2b464c3ce25f48a3787.tar.gz
symfony-security-b42447160cc359b2747ff2b464c3ce25f48a3787.tar.bz2
normalized license messages in PHP files
Diffstat (limited to 'Authentication')
-rw-r--r--Authentication/AuthenticationManagerInterface.php10
-rw-r--r--Authentication/AuthenticationProviderManager.php16
-rw-r--r--Authentication/AuthenticationTrustResolver.php9
-rw-r--r--Authentication/AuthenticationTrustResolverInterface.php8
-rw-r--r--Authentication/EntryPoint/AuthenticationEntryPointInterface.php16
-rw-r--r--Authentication/Provider/AnonymousAuthenticationProvider.php18
-rw-r--r--Authentication/Provider/AuthenticationProviderInterface.php10
-rw-r--r--Authentication/Provider/DaoAuthenticationProvider.php18
-rw-r--r--Authentication/Provider/PreAuthenticatedAuthenticationProvider.php16
-rw-r--r--Authentication/Provider/UserAuthenticationProvider.php18
-rw-r--r--Authentication/Token/AnonymousToken.php10
-rw-r--r--Authentication/Token/PreAuthenticatedToken.php4
-rw-r--r--Authentication/Token/RememberMeToken.php9
-rw-r--r--Authentication/Token/Token.php12
-rw-r--r--Authentication/Token/TokenInterface.php8
-rw-r--r--Authentication/Token/UsernamePasswordToken.php4
16 files changed, 102 insertions, 84 deletions
diff --git a/Authentication/AuthenticationManagerInterface.php b/Authentication/AuthenticationManagerInterface.php
index b0291a4..10625c7 100644
--- a/Authentication/AuthenticationManagerInterface.php
+++ b/Authentication/AuthenticationManagerInterface.php
@@ -1,10 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication;
-
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-use Symfony\Component\Security\Exception\AuthenticationException;
-
/*
* This file is part of the Symfony package.
*
@@ -14,6 +9,11 @@ use Symfony\Component\Security\Exception\AuthenticationException;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+use Symfony\Component\Security\Exception\AuthenticationException;
+
/**
* AuthenticationManagerInterface is the interface for authentication managers,
* which process Token authentication.
diff --git a/Authentication/AuthenticationProviderManager.php b/Authentication/AuthenticationProviderManager.php
index 9f8efbf..35ce996 100644
--- a/Authentication/AuthenticationProviderManager.php
+++ b/Authentication/AuthenticationProviderManager.php
@@ -1,13 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication;
-
-use Symfony\Component\Security\Exception\AccountStatusException;
-use Symfony\Component\Security\Exception\AuthenticationException;
-use Symfony\Component\Security\Exception\ProviderNotFoundException;
-use Symfony\Component\Security\Authentication\Provider\AuthenticationProviderInterface;
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -17,6 +9,14 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication;
+
+use Symfony\Component\Security\Exception\AccountStatusException;
+use Symfony\Component\Security\Exception\AuthenticationException;
+use Symfony\Component\Security\Exception\ProviderNotFoundException;
+use Symfony\Component\Security\Authentication\Provider\AuthenticationProviderInterface;
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* AuthenticationProviderManager uses a list of AuthenticationProviderInterface
* instances to authenticate a Token.
diff --git a/Authentication/AuthenticationTrustResolver.php b/Authentication/AuthenticationTrustResolver.php
index 010fa91..94e01eb 100644
--- a/Authentication/AuthenticationTrustResolver.php
+++ b/Authentication/AuthenticationTrustResolver.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\Authentication;
use Symfony\Component\Security\Authentication\Token\TokenInterface;
diff --git a/Authentication/AuthenticationTrustResolverInterface.php b/Authentication/AuthenticationTrustResolverInterface.php
index e57bb65..47d4789 100644
--- a/Authentication/AuthenticationTrustResolverInterface.php
+++ b/Authentication/AuthenticationTrustResolverInterface.php
@@ -1,9 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication;
-
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -13,6 +9,10 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* Interface for resolving the authentication status of a given token.
*
diff --git a/Authentication/EntryPoint/AuthenticationEntryPointInterface.php b/Authentication/EntryPoint/AuthenticationEntryPointInterface.php
index e58f219..004837f 100644
--- a/Authentication/EntryPoint/AuthenticationEntryPointInterface.php
+++ b/Authentication/EntryPoint/AuthenticationEntryPointInterface.php
@@ -1,19 +1,19 @@
<?php
-namespace Symfony\Component\Security\Authentication\EntryPoint;
-
-use Symfony\Component\Security\Exception\AuthenticationException;
-use Symfony\Component\HttpFoundation\Request;
-
/*
- * This file is part of the Symfony framework.
+ * This file is part of the Symfony package.
*
* (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.
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\EntryPoint;
+
+use Symfony\Component\Security\Exception\AuthenticationException;
+use Symfony\Component\HttpFoundation\Request;
+
/**
* AuthenticationEntryPointInterface is the interface used to start the
* authentication scheme.
diff --git a/Authentication/Provider/AnonymousAuthenticationProvider.php b/Authentication/Provider/AnonymousAuthenticationProvider.php
index 091bca1..92f668d 100644
--- a/Authentication/Provider/AnonymousAuthenticationProvider.php
+++ b/Authentication/Provider/AnonymousAuthenticationProvider.php
@@ -1,20 +1,20 @@
<?php
-namespace Symfony\Component\Security\Authentication\Provider;
-
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-use Symfony\Component\Security\Exception\BadCredentialsException;
-use Symfony\Component\Security\Authentication\Token\AnonymousToken;
-
/*
- * This file is part of the Symfony framework.
+ * This file is part of the Symfony package.
*
* (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.
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\Provider;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+use Symfony\Component\Security\Exception\BadCredentialsException;
+use Symfony\Component\Security\Authentication\Token\AnonymousToken;
+
/**
* AnonymousAuthenticationProvider validates AnonymousToken instances.
*
diff --git a/Authentication/Provider/AuthenticationProviderInterface.php b/Authentication/Provider/AuthenticationProviderInterface.php
index bfa8921..843f05c 100644
--- a/Authentication/Provider/AuthenticationProviderInterface.php
+++ b/Authentication/Provider/AuthenticationProviderInterface.php
@@ -1,10 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication\Provider;
-
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-use Symfony\Component\Security\Authentication\AuthenticationManagerInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -14,6 +9,11 @@ use Symfony\Component\Security\Authentication\AuthenticationManagerInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\Provider;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+use Symfony\Component\Security\Authentication\AuthenticationManagerInterface;
+
/**
* AuthenticationProviderInterface is the interface for for all authentication
* providers.
diff --git a/Authentication/Provider/DaoAuthenticationProvider.php b/Authentication/Provider/DaoAuthenticationProvider.php
index a44584f..d83a125 100644
--- a/Authentication/Provider/DaoAuthenticationProvider.php
+++ b/Authentication/Provider/DaoAuthenticationProvider.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\Authentication\Provider;
use Symfony\Component\Security\Encoder\EncoderFactoryInterface;
@@ -11,15 +20,6 @@ use Symfony\Component\Security\Exception\AuthenticationServiceException;
use Symfony\Component\Security\Exception\BadCredentialsException;
use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
-/*
- * 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.
- */
-
/**
* DaoAuthenticationProvider uses a UserProviderInterface to retrieve the user
* for a UsernamePasswordToken.
diff --git a/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php b/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
index e161323..aab823a 100644
--- a/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
+++ b/Authentication/Provider/PreAuthenticatedAuthenticationProvider.php
@@ -1,13 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication\Provider;
-
-use Symfony\Component\Security\User\UserProviderInterface;
-use Symfony\Component\Security\User\AccountCheckerInterface;
-use Symfony\Component\Security\Exception\BadCredentialsException;
-use Symfony\Component\Security\Authentication\Token\PreAuthenticatedToken;
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -17,6 +9,14 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\Provider;
+
+use Symfony\Component\Security\User\UserProviderInterface;
+use Symfony\Component\Security\User\AccountCheckerInterface;
+use Symfony\Component\Security\Exception\BadCredentialsException;
+use Symfony\Component\Security\Authentication\Token\PreAuthenticatedToken;
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* Processes a pre-authenticated authentication request.
*
diff --git a/Authentication/Provider/UserAuthenticationProvider.php b/Authentication/Provider/UserAuthenticationProvider.php
index 0ded6f7..9ee4d61 100644
--- a/Authentication/Provider/UserAuthenticationProvider.php
+++ b/Authentication/Provider/UserAuthenticationProvider.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\Authentication\Provider;
use Symfony\Component\Security\User\AccountInterface;
@@ -11,15 +20,6 @@ use Symfony\Component\Security\Exception\AuthenticationServiceException;
use Symfony\Component\Security\Authentication\Token\UsernamePasswordToken;
use Symfony\Component\Security\Authentication\Token\TokenInterface;
-/*
- * 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.
- */
-
/**
* UserProviderInterface retrieves users for UsernamePasswordToken tokens.
*
diff --git a/Authentication/Token/AnonymousToken.php b/Authentication/Token/AnonymousToken.php
index c8fb1aa..68174ff 100644
--- a/Authentication/Token/AnonymousToken.php
+++ b/Authentication/Token/AnonymousToken.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Authentication\Token;
-
/*
- * This file is part of the Symfony framework.
+ * This file is part of the Symfony package.
*
* (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.
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\Token;
+
/**
* AnonymousToken represents an anonymous token.
*
diff --git a/Authentication/Token/PreAuthenticatedToken.php b/Authentication/Token/PreAuthenticatedToken.php
index 9532c53..8c6fc5f 100644
--- a/Authentication/Token/PreAuthenticatedToken.php
+++ b/Authentication/Token/PreAuthenticatedToken.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication\Token;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Authentication\Token;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\Token;
+
/**
* PreAuthenticatedToken implements a pre-authenticated token.
*
diff --git a/Authentication/Token/RememberMeToken.php b/Authentication/Token/RememberMeToken.php
index 587222d..50284aa 100644
--- a/Authentication/Token/RememberMeToken.php
+++ b/Authentication/Token/RememberMeToken.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\Authentication\Token;
use Symfony\Component\Security\Authentication\RememberMe\PersistentTokenInterface;
diff --git a/Authentication/Token/Token.php b/Authentication/Token/Token.php
index 8927c80..9e0d5a1 100644
--- a/Authentication/Token/Token.php
+++ b/Authentication/Token/Token.php
@@ -1,11 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication\Token;
-
-use Symfony\Component\Security\Role\RoleInterface;
-use Symfony\Component\Security\Role\Role;
-use Symfony\Component\Security\User\AccountInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -15,6 +9,12 @@ use Symfony\Component\Security\User\AccountInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\Token;
+
+use Symfony\Component\Security\Role\RoleInterface;
+use Symfony\Component\Security\Role\Role;
+use Symfony\Component\Security\User\AccountInterface;
+
/**
* Base class for Token instances.
*
diff --git a/Authentication/Token/TokenInterface.php b/Authentication/Token/TokenInterface.php
index 2b50693..99aa7a1 100644
--- a/Authentication/Token/TokenInterface.php
+++ b/Authentication/Token/TokenInterface.php
@@ -1,9 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication\Token;
-
-use Symfony\Component\Security\User\AccountInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -13,6 +9,10 @@ use Symfony\Component\Security\User\AccountInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\Token;
+
+use Symfony\Component\Security\User\AccountInterface;
+
/**
* TokenInterface is the interface for the user authentication information.
*
diff --git a/Authentication/Token/UsernamePasswordToken.php b/Authentication/Token/UsernamePasswordToken.php
index 021a90e..ed82ec8 100644
--- a/Authentication/Token/UsernamePasswordToken.php
+++ b/Authentication/Token/UsernamePasswordToken.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authentication\Token;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Authentication\Token;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authentication\Token;
+
/**
* UsernamePasswordToken implements a username and password token.
*