summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Acl/Dbal/AclProvider.php18
-rw-r--r--Acl/Dbal/MutableAclProvider.php18
-rw-r--r--Acl/Dbal/Schema.php14
-rw-r--r--Acl/Domain/Acl.php16
-rw-r--r--Acl/Domain/AuditLogger.php18
-rw-r--r--Acl/Domain/DoctrineAclCache.php18
-rw-r--r--Acl/Domain/Entry.php18
-rw-r--r--Acl/Domain/FieldEntry.php18
-rw-r--r--Acl/Domain/ObjectIdentity.php18
-rw-r--r--Acl/Domain/ObjectIdentityRetrievalStrategy.php16
-rw-r--r--Acl/Domain/PermissionGrantingStrategy.php18
-rw-r--r--Acl/Domain/RoleSecurityIdentity.php16
-rw-r--r--Acl/Domain/SecurityIdentityRetrievalStrategy.php18
-rw-r--r--Acl/Domain/UserSecurityIdentity.php16
-rw-r--r--Acl/Exception/AclAlreadyExistsException.php10
-rw-r--r--Acl/Exception/AclNotFoundException.php10
-rw-r--r--Acl/Exception/ConcurrentModificationException.php9
-rw-r--r--Acl/Exception/Exception.php10
-rw-r--r--Acl/Exception/InvalidDomainObjectException.php9
-rw-r--r--Acl/Exception/NoAceFoundException.php10
-rw-r--r--Acl/Exception/NotAllAclsFoundException.php9
-rw-r--r--Acl/Exception/SidNotLoadedException.php10
-rw-r--r--Acl/Model/AclCacheInterface.php10
-rw-r--r--Acl/Model/AclInterface.php10
-rw-r--r--Acl/Model/AclProviderInterface.php10
-rw-r--r--Acl/Model/AuditLoggerInterface.php10
-rw-r--r--Acl/Model/AuditableAclInterface.php10
-rw-r--r--Acl/Model/AuditableEntryInterface.php10
-rw-r--r--Acl/Model/DomainObjectInterface.php10
-rw-r--r--Acl/Model/EntryInterface.php10
-rw-r--r--Acl/Model/FieldAwareEntryInterface.php10
-rw-r--r--Acl/Model/MutableAclInterface.php14
-rw-r--r--Acl/Model/MutableAclProviderInterface.php10
-rw-r--r--Acl/Model/ObjectIdentityInterface.php10
-rw-r--r--Acl/Model/ObjectIdentityRetrievalStrategyInterface.php9
-rw-r--r--Acl/Model/PermissionGrantingStrategyInterface.php10
-rw-r--r--Acl/Model/SecurityIdentityInterface.php10
-rw-r--r--Acl/Model/SecurityIdentityRetrievalStrategyInterface.php9
-rw-r--r--Acl/Permission/BasicPermissionMap.php10
-rw-r--r--Acl/Permission/MaskBuilder.php10
-rw-r--r--Acl/Permission/PermissionMapInterface.php10
-rw-r--r--Acl/Voter/AclVoter.php18
-rw-r--r--Acl/Voter/FieldVote.php10
-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
-rw-r--r--Authorization/AccessDecisionManager.php10
-rw-r--r--Authorization/AccessDecisionManagerInterface.php8
-rw-r--r--Authorization/Voter/AuthenticatedVoter.php10
-rw-r--r--Authorization/Voter/RoleHierarchyVoter.php10
-rw-r--r--Authorization/Voter/RoleVoter.php8
-rw-r--r--Authorization/Voter/VoterInterface.php8
-rw-r--r--Encoder/BasePasswordEncoder.php4
-rw-r--r--Encoder/EncoderFactory.php8
-rw-r--r--Encoder/EncoderFactoryInterface.php8
-rw-r--r--Encoder/MessageDigestPasswordEncoder.php4
-rw-r--r--Encoder/PasswordEncoderInterface.php4
-rw-r--r--Encoder/PlaintextPasswordEncoder.php4
-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
-rw-r--r--Role/Role.php4
-rw-r--r--Role/RoleHierarchy.php4
-rw-r--r--Role/RoleHierarchyInterface.php4
-rw-r--r--Role/RoleInterface.php4
-rw-r--r--Role/SwitchUserRole.php8
-rw-r--r--SecurityContext.php12
-rw-r--r--User/AccountChecker.php14
-rw-r--r--User/AccountCheckerInterface.php4
-rw-r--r--User/AccountInterface.php4
-rw-r--r--User/AdvancedAccountInterface.php4
-rw-r--r--User/InMemoryUserProvider.php10
-rw-r--r--User/User.php4
-rw-r--r--User/UserProviderInterface.php4
99 files changed, 520 insertions, 448 deletions
diff --git a/Acl/Dbal/AclProvider.php b/Acl/Dbal/AclProvider.php
index 80fa1fe..00bc01d 100644
--- a/Acl/Dbal/AclProvider.php
+++ b/Acl/Dbal/AclProvider.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\Acl\Dbal;
use Doctrine\DBAL\Driver\Connection;
@@ -17,15 +26,6 @@ use Symfony\Component\Security\Acl\Model\AclProviderInterface;
use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface;
use Symfony\Component\Security\Acl\Model\PermissionGrantingStrategyInterface;
-/*
- * 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.
- */
-
/**
* An ACL provider implementation.
*
diff --git a/Acl/Dbal/MutableAclProvider.php b/Acl/Dbal/MutableAclProvider.php
index 5622aeb..8ef08e2 100644
--- a/Acl/Dbal/MutableAclProvider.php
+++ b/Acl/Dbal/MutableAclProvider.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\Acl\Dbal;
use Doctrine\Common\PropertyChangedListener;
@@ -18,15 +27,6 @@ use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface;
use Symfony\Component\Security\Acl\Model\PermissionGrantingStrategyInterface;
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
-/*
- * 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.
- */
-
/**
* An implementation of the MutableAclProviderInterface using Doctrine DBAL.
*
diff --git a/Acl/Dbal/Schema.php b/Acl/Dbal/Schema.php
index ab0852a..c12343b 100644
--- a/Acl/Dbal/Schema.php
+++ b/Acl/Dbal/Schema.php
@@ -1,18 +1,18 @@
<?php
-namespace Symfony\Component\Security\Acl\Dbal;
-
-use Doctrine\DBAL\Schema\Schema as BaseSchema;
-
/*
- * 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\Acl\Dbal;
+
+use Doctrine\DBAL\Schema\Schema as BaseSchema;
+
/**
* The schema used for the ACL system.
*
diff --git a/Acl/Domain/Acl.php b/Acl/Domain/Acl.php
index c0c9830..671b64e 100644
--- a/Acl/Domain/Acl.php
+++ b/Acl/Domain/Acl.php
@@ -1,4 +1,12 @@
<?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\Acl\Domain;
@@ -12,14 +20,6 @@ use Symfony\Component\Security\Acl\Model\PermissionGrantingStrategyInterface;
use Symfony\Component\Security\Acl\Model\PermissionInterface;
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
-/*
- * 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.
- */
/**
* An ACL implementation.
diff --git a/Acl/Domain/AuditLogger.php b/Acl/Domain/AuditLogger.php
index 12faa4c..9b736b9 100644
--- a/Acl/Domain/AuditLogger.php
+++ b/Acl/Domain/AuditLogger.php
@@ -1,20 +1,20 @@
<?php
-namespace Symfony\Component\Security\Acl\Domain;
-
-use Symfony\Component\Security\Acl\Model\AuditableEntryInterface;
-use Symfony\Component\Security\Acl\Model\EntryInterface;
-use Symfony\Component\Security\Acl\Model\AuditLoggerInterface;
-
/*
- * 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\Acl\Domain;
+
+use Symfony\Component\Security\Acl\Model\AuditableEntryInterface;
+use Symfony\Component\Security\Acl\Model\EntryInterface;
+use Symfony\Component\Security\Acl\Model\AuditLoggerInterface;
+
/**
* Base audit logger implementation
*
diff --git a/Acl/Domain/DoctrineAclCache.php b/Acl/Domain/DoctrineAclCache.php
index c6ad999..f8fa186 100644
--- a/Acl/Domain/DoctrineAclCache.php
+++ b/Acl/Domain/DoctrineAclCache.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\Acl\Domain;
use Doctrine\Common\Cache\Cache;
@@ -8,15 +17,6 @@ use Symfony\Component\Security\Acl\Model\AclInterface;
use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface;
use Symfony\Component\Security\Acl\Model\PermissionGrantingStrategyInterface;
-/*
- * 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.
- */
-
/**
* This class is a wrapper around the actual cache implementation.
*
diff --git a/Acl/Domain/Entry.php b/Acl/Domain/Entry.php
index b6dd1f0..a3199c9 100644
--- a/Acl/Domain/Entry.php
+++ b/Acl/Domain/Entry.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\Acl\Domain;
use Symfony\Component\Security\Acl\Model\AclInterface;
@@ -8,15 +17,6 @@ use Symfony\Component\Security\Acl\Model\EntryInterface;
use Symfony\Component\Security\Acl\Model\PermissionInterface;
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
-/*
- * 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.
- */
-
/**
* Auditable ACE implementation
*
diff --git a/Acl/Domain/FieldEntry.php b/Acl/Domain/FieldEntry.php
index 0e1a407..d72e9b0 100644
--- a/Acl/Domain/FieldEntry.php
+++ b/Acl/Domain/FieldEntry.php
@@ -1,20 +1,20 @@
<?php
-namespace Symfony\Component\Security\Acl\Domain;
-
-use Symfony\Component\Security\Acl\Model\AclInterface;
-use Symfony\Component\Security\Acl\Model\FieldAwareEntryInterface;
-use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
-
/*
- * 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\Acl\Domain;
+
+use Symfony\Component\Security\Acl\Model\AclInterface;
+use Symfony\Component\Security\Acl\Model\FieldAwareEntryInterface;
+use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
+
/**
* Field-aware ACE implementation which is auditable
*
diff --git a/Acl/Domain/ObjectIdentity.php b/Acl/Domain/ObjectIdentity.php
index 57a17f8..3e3eb2d 100644
--- a/Acl/Domain/ObjectIdentity.php
+++ b/Acl/Domain/ObjectIdentity.php
@@ -1,20 +1,20 @@
<?php
-namespace Symfony\Component\Security\Acl\Domain;
-
-use Symfony\Component\Security\Acl\Exception\InvalidDomainObjectException;
-use Symfony\Component\Security\Acl\Model\DomainObjectInterface;
-use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface;
-
/*
- * 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\Acl\Domain;
+
+use Symfony\Component\Security\Acl\Exception\InvalidDomainObjectException;
+use Symfony\Component\Security\Acl\Model\DomainObjectInterface;
+use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface;
+
/**
* ObjectIdentity implementation
*
diff --git a/Acl/Domain/ObjectIdentityRetrievalStrategy.php b/Acl/Domain/ObjectIdentityRetrievalStrategy.php
index 64315bf..d5a8735 100644
--- a/Acl/Domain/ObjectIdentityRetrievalStrategy.php
+++ b/Acl/Domain/ObjectIdentityRetrievalStrategy.php
@@ -1,19 +1,19 @@
<?php
-namespace Symfony\Component\Security\Acl\Domain;
-
-use Symfony\Component\Security\Acl\Exception\InvalidDomainObjectException;
-use Symfony\Component\Security\Acl\Model\ObjectIdentityRetrievalStrategyInterface;
-
/*
- * 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\Acl\Domain;
+
+use Symfony\Component\Security\Acl\Exception\InvalidDomainObjectException;
+use Symfony\Component\Security\Acl\Model\ObjectIdentityRetrievalStrategyInterface;
+
/**
* Strategy to be used for retrieving object identities from domain objects
*
diff --git a/Acl/Domain/PermissionGrantingStrategy.php b/Acl/Domain/PermissionGrantingStrategy.php
index a349e93..84ac135 100644
--- a/Acl/Domain/PermissionGrantingStrategy.php
+++ b/Acl/Domain/PermissionGrantingStrategy.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\Acl\Domain;
use Symfony\Component\Security\Acl\Exception\NoAceFoundException;
@@ -11,15 +20,6 @@ use Symfony\Component\Security\Acl\Model\PermissionGrantingStrategyInterface;
use Symfony\Component\Security\Acl\Model\PermissionInterface;
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
-/*
- * 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.
- */
-
/**
* The permission granting strategy to apply to the access control list.
*
diff --git a/Acl/Domain/RoleSecurityIdentity.php b/Acl/Domain/RoleSecurityIdentity.php
index 4632b80..0a55fda 100644
--- a/Acl/Domain/RoleSecurityIdentity.php
+++ b/Acl/Domain/RoleSecurityIdentity.php
@@ -1,19 +1,19 @@
<?php
-namespace Symfony\Component\Security\Acl\Domain;
-
-use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
-use Symfony\Component\Security\Role\Role;
-
/*
- * 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\Acl\Domain;
+
+use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
+use Symfony\Component\Security\Role\Role;
+
/**
* A SecurityIdentity implementation for roles
*
diff --git a/Acl/Domain/SecurityIdentityRetrievalStrategy.php b/Acl/Domain/SecurityIdentityRetrievalStrategy.php
index cfc0fe9..eaf48de 100644
--- a/Acl/Domain/SecurityIdentityRetrievalStrategy.php
+++ b/Acl/Domain/SecurityIdentityRetrievalStrategy.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\Acl\Domain;
use Symfony\Component\Security\User\AccountInterface;
@@ -9,15 +18,6 @@ use Symfony\Component\Security\Authentication\AuthenticationTrustResolver;
use Symfony\Component\Security\Role\RoleHierarchyInterface;
use Symfony\Component\Security\Authorization\Voter\AuthenticatedVoter;
-/*
- * 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.
- */
-
/**
* Strategy for retrieving security identities
*
diff --git a/Acl/Domain/UserSecurityIdentity.php b/Acl/Domain/UserSecurityIdentity.php
index 9752704..3b03191 100644
--- a/Acl/Domain/UserSecurityIdentity.php
+++ b/Acl/Domain/UserSecurityIdentity.php
@@ -1,19 +1,19 @@
<?php
-namespace Symfony\Component\Security\Acl\Domain;
-
-use Symfony\Component\Security\User\AccountInterface;
-use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
-
/*
- * 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\Acl\Domain;
+
+use Symfony\Component\Security\User\AccountInterface;
+use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface;
+
/**
* A SecurityIdentity implementation used for actual users
*
diff --git a/Acl/Exception/AclAlreadyExistsException.php b/Acl/Exception/AclAlreadyExistsException.php
index 223b52c..7dbc188 100644
--- a/Acl/Exception/AclAlreadyExistsException.php
+++ b/Acl/Exception/AclAlreadyExistsException.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Exception;
-
/*
- * 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\Acl\Exception;
+
/**
* This exception is thrown when someone tries to create an ACL for an object
* identity that already has one.
diff --git a/Acl/Exception/AclNotFoundException.php b/Acl/Exception/AclNotFoundException.php
index 140e739..f978fa9 100644
--- a/Acl/Exception/AclNotFoundException.php
+++ b/Acl/Exception/AclNotFoundException.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Exception;
-
/*
- * 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\Acl\Exception;
+
/**
* This exception is thrown when we cannot locate an ACL for a passed
* ObjectIdentity implementation.
diff --git a/Acl/Exception/ConcurrentModificationException.php b/Acl/Exception/ConcurrentModificationException.php
index fd65c2b..3b399bb 100644
--- a/Acl/Exception/ConcurrentModificationException.php
+++ b/Acl/Exception/ConcurrentModificationException.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\Acl\Exception;
/**
diff --git a/Acl/Exception/Exception.php b/Acl/Exception/Exception.php
index 0e0add3..49b1edd 100644
--- a/Acl/Exception/Exception.php
+++ b/Acl/Exception/Exception.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Exception;
-
/*
- * 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\Acl\Exception;
+
/**
* Base ACL exception
*
diff --git a/Acl/Exception/InvalidDomainObjectException.php b/Acl/Exception/InvalidDomainObjectException.php
index 12f0b9a..b21d1c9 100644
--- a/Acl/Exception/InvalidDomainObjectException.php
+++ b/Acl/Exception/InvalidDomainObjectException.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\Acl\Exception;
/**
diff --git a/Acl/Exception/NoAceFoundException.php b/Acl/Exception/NoAceFoundException.php
index 788be2a..0380922 100644
--- a/Acl/Exception/NoAceFoundException.php
+++ b/Acl/Exception/NoAceFoundException.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Exception;
-
/*
- * 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\Acl\Exception;
+
/**
* This exception is thrown when we cannot locate an ACE that matches the
* combination of permission masks and security identities.
diff --git a/Acl/Exception/NotAllAclsFoundException.php b/Acl/Exception/NotAllAclsFoundException.php
index 84672de..69751f8 100644
--- a/Acl/Exception/NotAllAclsFoundException.php
+++ b/Acl/Exception/NotAllAclsFoundException.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\Acl\Exception;
/**
diff --git a/Acl/Exception/SidNotLoadedException.php b/Acl/Exception/SidNotLoadedException.php
index c856dce..2dec137 100644
--- a/Acl/Exception/SidNotLoadedException.php
+++ b/Acl/Exception/SidNotLoadedException.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Exception;
-
/*
- * 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\Acl\Exception;
+
/**
* This exception is thrown when ACEs for an SID are requested which has not
* been loaded from the database.
diff --git a/Acl/Model/AclCacheInterface.php b/Acl/Model/AclCacheInterface.php
index 356006f..cacf9ea 100644
--- a/Acl/Model/AclCacheInterface.php
+++ b/Acl/Model/AclCacheInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* AclCache Interface
*
diff --git a/Acl/Model/AclInterface.php b/Acl/Model/AclInterface.php
index d66e8da..373d620 100644
--- a/Acl/Model/AclInterface.php
+++ b/Acl/Model/AclInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* This interface represents an access control list (ACL) for a domain object.
* Each domain object can have exactly one associated ACL.
diff --git a/Acl/Model/AclProviderInterface.php b/Acl/Model/AclProviderInterface.php
index 238b687..666deff 100644
--- a/Acl/Model/AclProviderInterface.php
+++ b/Acl/Model/AclProviderInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* Provides a common interface for retrieving ACLs.
*
diff --git a/Acl/Model/AuditLoggerInterface.php b/Acl/Model/AuditLoggerInterface.php
index 6540858..205f7ea 100644
--- a/Acl/Model/AuditLoggerInterface.php
+++ b/Acl/Model/AuditLoggerInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* Interface for audit loggers
*
diff --git a/Acl/Model/AuditableAclInterface.php b/Acl/Model/AuditableAclInterface.php
index 9c901d1..84150f4 100644
--- a/Acl/Model/AuditableAclInterface.php
+++ b/Acl/Model/AuditableAclInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* This interface adds auditing capabilities to the ACL.
*
diff --git a/Acl/Model/AuditableEntryInterface.php b/Acl/Model/AuditableEntryInterface.php
index f829e88..521a69b 100644
--- a/Acl/Model/AuditableEntryInterface.php
+++ b/Acl/Model/AuditableEntryInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* ACEs can implement this interface if they support auditing capabilities.
*
diff --git a/Acl/Model/DomainObjectInterface.php b/Acl/Model/DomainObjectInterface.php
index 2fa1aa6..cd0c736 100644
--- a/Acl/Model/DomainObjectInterface.php
+++ b/Acl/Model/DomainObjectInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* This method can be implemented by domain objects which you want to store
* ACLs for if they do not have a getId() method, or getId() does not return
diff --git a/Acl/Model/EntryInterface.php b/Acl/Model/EntryInterface.php
index 476f18f..4cdab7a 100644
--- a/Acl/Model/EntryInterface.php
+++ b/Acl/Model/EntryInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* This class represents an individual entry in the ACL list.
*
diff --git a/Acl/Model/FieldAwareEntryInterface.php b/Acl/Model/FieldAwareEntryInterface.php
index 545aa44..375928b 100644
--- a/Acl/Model/FieldAwareEntryInterface.php
+++ b/Acl/Model/FieldAwareEntryInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* Interface for entries which are restricted to specific fields
*
diff --git a/Acl/Model/MutableAclInterface.php b/Acl/Model/MutableAclInterface.php
index 305bb04..618ebbc 100644
--- a/Acl/Model/MutableAclInterface.php
+++ b/Acl/Model/MutableAclInterface.php
@@ -1,18 +1,18 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
-use Doctrine\Common\NotifyPropertyChanged;
-
/*
- * 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\Acl\Model;
+
+use Doctrine\Common\NotifyPropertyChanged;
+
/**
* This interface adds mutators for the AclInterface.
*
diff --git a/Acl/Model/MutableAclProviderInterface.php b/Acl/Model/MutableAclProviderInterface.php
index 3164af7..f1e90b1 100644
--- a/Acl/Model/MutableAclProviderInterface.php
+++ b/Acl/Model/MutableAclProviderInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* Provides support for creating and storing ACL instances.
*
diff --git a/Acl/Model/ObjectIdentityInterface.php b/Acl/Model/ObjectIdentityInterface.php
index 7f7dbc6..8a108a2 100644
--- a/Acl/Model/ObjectIdentityInterface.php
+++ b/Acl/Model/ObjectIdentityInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* Represents the identity of an individual domain object instance.
*
diff --git a/Acl/Model/ObjectIdentityRetrievalStrategyInterface.php b/Acl/Model/ObjectIdentityRetrievalStrategyInterface.php
index 4709294..26f77e4 100644
--- a/Acl/Model/ObjectIdentityRetrievalStrategyInterface.php
+++ b/Acl/Model/ObjectIdentityRetrievalStrategyInterface.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\Acl\Model;
/**
diff --git a/Acl/Model/PermissionGrantingStrategyInterface.php b/Acl/Model/PermissionGrantingStrategyInterface.php
index 5b7e03f..800874e 100644
--- a/Acl/Model/PermissionGrantingStrategyInterface.php
+++ b/Acl/Model/PermissionGrantingStrategyInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* Interface used by permission granting implementations.
*
diff --git a/Acl/Model/SecurityIdentityInterface.php b/Acl/Model/SecurityIdentityInterface.php
index 251334d..7d8a9ec 100644
--- a/Acl/Model/SecurityIdentityInterface.php
+++ b/Acl/Model/SecurityIdentityInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Model;
-
/*
- * 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\Acl\Model;
+
/**
* This interface provides an additional level of indirection, so that
* we can work with abstracted versions of security objects and do
diff --git a/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php b/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php
index 6a8bb4c..6761216 100644
--- a/Acl/Model/SecurityIdentityRetrievalStrategyInterface.php
+++ b/Acl/Model/SecurityIdentityRetrievalStrategyInterface.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\Acl\Model;
use Symfony\Component\Security\Authentication\Token\TokenInterface;
diff --git a/Acl/Permission/BasicPermissionMap.php b/Acl/Permission/BasicPermissionMap.php
index 43a39d3..3f534d0 100644
--- a/Acl/Permission/BasicPermissionMap.php
+++ b/Acl/Permission/BasicPermissionMap.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Permission;
-
/*
- * 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\Acl\Permission;
+
/**
* This is basic permission map complements the masks which have been defined
* on the standard implementation of the MaskBuilder.
diff --git a/Acl/Permission/MaskBuilder.php b/Acl/Permission/MaskBuilder.php
index 55aece4..85c26fd 100644
--- a/Acl/Permission/MaskBuilder.php
+++ b/Acl/Permission/MaskBuilder.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Permission;
-
/*
- * 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\Acl\Permission;
+
/**
* This class allows you to build cumulative permissions easily, or convert
* masks to a human-readable format.
diff --git a/Acl/Permission/PermissionMapInterface.php b/Acl/Permission/PermissionMapInterface.php
index 27ee7f9..0d29715 100644
--- a/Acl/Permission/PermissionMapInterface.php
+++ b/Acl/Permission/PermissionMapInterface.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Permission;
-
/*
- * 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\Acl\Permission;
+
/**
* This is the interface that must be implemented by permission maps.
*
diff --git a/Acl/Voter/AclVoter.php b/Acl/Voter/AclVoter.php
index 002e891..7230e35 100644
--- a/Acl/Voter/AclVoter.php
+++ b/Acl/Voter/AclVoter.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\Acl\Voter;
use Symfony\Component\HttpKernel\Log\LoggerInterface;
@@ -16,15 +25,6 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Authorization\Voter\VoterInterface;
use Symfony\Component\Security\Role\RoleHierarchyInterface;
-/*
- * 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.
- */
-
/**
* This voter can be used as a base class for implementing your own permissions.
*
diff --git a/Acl/Voter/FieldVote.php b/Acl/Voter/FieldVote.php
index dbc4a61..0aec7ab 100644
--- a/Acl/Voter/FieldVote.php
+++ b/Acl/Voter/FieldVote.php
@@ -1,16 +1,16 @@
<?php
-namespace Symfony\Component\Security\Acl\Voter;
-
/*
- * 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\Acl\Voter;
+
/**
* This class is a lightweight wrapper around field vote requests which does
* not violate any interface contracts.
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.
*
diff --git a/Authorization/AccessDecisionManager.php b/Authorization/AccessDecisionManager.php
index ce9dea5..5e4d15c 100644
--- a/Authorization/AccessDecisionManager.php
+++ b/Authorization/AccessDecisionManager.php
@@ -1,10 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authorization;
-
-use Symfony\Component\Security\Authorization\Voter\VoterInterface;
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -14,6 +9,11 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authorization;
+
+use Symfony\Component\Security\Authorization\Voter\VoterInterface;
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* AccessDecisionManager is the base class for all access decision managers
* that use decision voters.
diff --git a/Authorization/AccessDecisionManagerInterface.php b/Authorization/AccessDecisionManagerInterface.php
index ae1288a..a11f25b 100644
--- a/Authorization/AccessDecisionManagerInterface.php
+++ b/Authorization/AccessDecisionManagerInterface.php
@@ -1,9 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authorization;
-
-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\Authorization;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* AccessDecisionManagerInterface makes authorization decisions.
*
diff --git a/Authorization/Voter/AuthenticatedVoter.php b/Authorization/Voter/AuthenticatedVoter.php
index bf78626..afda920 100644
--- a/Authorization/Voter/AuthenticatedVoter.php
+++ b/Authorization/Voter/AuthenticatedVoter.php
@@ -1,10 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authorization\Voter;
-
-use Symfony\Component\Security\Authentication\AuthenticationTrustResolverInterface;
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -14,6 +9,11 @@ use Symfony\Component\Security\Authentication\Token\TokenInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authorization\Voter;
+
+use Symfony\Component\Security\Authentication\AuthenticationTrustResolverInterface;
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* AuthenticatedVoter votes if an attribute like IS_AUTHENTICATED_FULLY,
* IS_AUTHENTICATED_REMEMBERED, or IS_AUTHENTICATED_ANONYMOUSLY is present.
diff --git a/Authorization/Voter/RoleHierarchyVoter.php b/Authorization/Voter/RoleHierarchyVoter.php
index 2309822..34a299c 100644
--- a/Authorization/Voter/RoleHierarchyVoter.php
+++ b/Authorization/Voter/RoleHierarchyVoter.php
@@ -1,10 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authorization\Voter;
-
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-use Symfony\Component\Security\Role\RoleHierarchyInterface;
-
/*
* This file is part of the Symfony package.
*
@@ -14,6 +9,11 @@ use Symfony\Component\Security\Role\RoleHierarchyInterface;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Authorization\Voter;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+use Symfony\Component\Security\Role\RoleHierarchyInterface;
+
/**
* RoleHierarchyVoter uses a RoleHierarchy to determine the roles granted to
* the user before voting.
diff --git a/Authorization/Voter/RoleVoter.php b/Authorization/Voter/RoleVoter.php
index 7aa7ae9..e13c83b 100644
--- a/Authorization/Voter/RoleVoter.php
+++ b/Authorization/Voter/RoleVoter.php
@@ -1,9 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authorization\Voter;
-
-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\Authorization\Voter;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* RoleVoter votes if any attribute starts with a given prefix.
*
diff --git a/Authorization/Voter/VoterInterface.php b/Authorization/Voter/VoterInterface.php
index 800b0fa..0c20fc0 100644
--- a/Authorization/Voter/VoterInterface.php
+++ b/Authorization/Voter/VoterInterface.php
@@ -1,9 +1,5 @@
<?php
-namespace Symfony\Component\Security\Authorization\Voter;
-
-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\Authorization\Voter;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* VoterInterface is the interface implemented by all voters.
*
diff --git a/Encoder/BasePasswordEncoder.php b/Encoder/BasePasswordEncoder.php
index 23677f8..8b63c63 100644
--- a/Encoder/BasePasswordEncoder.php
+++ b/Encoder/BasePasswordEncoder.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Encoder;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Encoder;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Encoder;
+
/**
* BasePasswordEncoder is the base class for all password encoders.
*
diff --git a/Encoder/EncoderFactory.php b/Encoder/EncoderFactory.php
index 5462ac2..ae33fee 100644
--- a/Encoder/EncoderFactory.php
+++ b/Encoder/EncoderFactory.php
@@ -1,9 +1,5 @@
<?php
-namespace Symfony\Component\Security\Encoder;
-
-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\Encoder;
+
+use Symfony\Component\Security\User\AccountInterface;
+
/**
* A generic encoder factory implementation
*
diff --git a/Encoder/EncoderFactoryInterface.php b/Encoder/EncoderFactoryInterface.php
index 0c62b35..1ed37d7 100644
--- a/Encoder/EncoderFactoryInterface.php
+++ b/Encoder/EncoderFactoryInterface.php
@@ -1,9 +1,5 @@
<?php
-namespace Symfony\Component\Security\Encoder;
-
-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\Encoder;
+
+use Symfony\Component\Security\User\AccountInterface;
+
/**
* EncoderFactoryInterface to support different encoders for different accounts.
*
diff --git a/Encoder/MessageDigestPasswordEncoder.php b/Encoder/MessageDigestPasswordEncoder.php
index f7e481f..752b9a7 100644
--- a/Encoder/MessageDigestPasswordEncoder.php
+++ b/Encoder/MessageDigestPasswordEncoder.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Encoder;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Encoder;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Encoder;
+
/**
* MessageDigestPasswordEncoder uses a message digest algorithm.
*
diff --git a/Encoder/PasswordEncoderInterface.php b/Encoder/PasswordEncoderInterface.php
index 3cb6a69..af076ec 100644
--- a/Encoder/PasswordEncoderInterface.php
+++ b/Encoder/PasswordEncoderInterface.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Encoder;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Encoder;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Encoder;
+
/**
* PasswordEncoderInterface is the interface for all encoders.
*
diff --git a/Encoder/PlaintextPasswordEncoder.php b/Encoder/PlaintextPasswordEncoder.php
index ffbccc8..0cc6f2c 100644
--- a/Encoder/PlaintextPasswordEncoder.php
+++ b/Encoder/PlaintextPasswordEncoder.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Encoder;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Encoder;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Encoder;
+
/**
* PlaintextPasswordEncoder does not do any encoding.
*
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.
*
diff --git a/Role/Role.php b/Role/Role.php
index 3404cb9..2f2b066 100644
--- a/Role/Role.php
+++ b/Role/Role.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Role;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Role;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Role;
+
/**
* Role is a simple implementation of a RoleInterface where the role is a
* string.
diff --git a/Role/RoleHierarchy.php b/Role/RoleHierarchy.php
index 11864b3..a2eeb43 100644
--- a/Role/RoleHierarchy.php
+++ b/Role/RoleHierarchy.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Role;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Role;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Role;
+
/**
* RoleHierarchy defines a role hierarchy.
*
diff --git a/Role/RoleHierarchyInterface.php b/Role/RoleHierarchyInterface.php
index b435618..0937b37 100644
--- a/Role/RoleHierarchyInterface.php
+++ b/Role/RoleHierarchyInterface.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Role;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Role;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Role;
+
/**
* RoleHierarchyInterface is the interface for a role hierarchy.
*
diff --git a/Role/RoleInterface.php b/Role/RoleInterface.php
index 4b55609..e958466 100644
--- a/Role/RoleInterface.php
+++ b/Role/RoleInterface.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\Role;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\Role;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\Role;
+
/**
* RoleInterface represents a role granted to a user.
*
diff --git a/Role/SwitchUserRole.php b/Role/SwitchUserRole.php
index d67fa74..df6d1eb 100644
--- a/Role/SwitchUserRole.php
+++ b/Role/SwitchUserRole.php
@@ -1,9 +1,5 @@
<?php
-namespace Symfony\Component\Security\Role;
-
-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\Role;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+
/**
* SwitchUserRole is used when the current user temporarily impersonates
* another one.
diff --git a/SecurityContext.php b/SecurityContext.php
index 8efc950..e694d82 100644
--- a/SecurityContext.php
+++ b/SecurityContext.php
@@ -1,11 +1,5 @@
<?php
-namespace Symfony\Component\Security;
-
-use Symfony\Component\Security\Authentication\Token\TokenInterface;
-use Symfony\Component\Security\Authorization\AccessDecisionManager;
-use Symfony\Component\Security\Acl\Voter\FieldVote;
-
/*
* This file is part of the Symfony package.
*
@@ -15,6 +9,12 @@ use Symfony\Component\Security\Acl\Voter\FieldVote;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security;
+
+use Symfony\Component\Security\Authentication\Token\TokenInterface;
+use Symfony\Component\Security\Authorization\AccessDecisionManager;
+use Symfony\Component\Security\Acl\Voter\FieldVote;
+
/**
* SecurityContext is the main entry point of the Security component.
*
diff --git a/User/AccountChecker.php b/User/AccountChecker.php
index ca73cab..9e4012c 100644
--- a/User/AccountChecker.php
+++ b/User/AccountChecker.php
@@ -1,12 +1,5 @@
<?php
-namespace Symfony\Component\Security\User;
-
-use Symfony\Component\Security\Exception\CredentialsExpiredException;
-use Symfony\Component\Security\Exception\LockedException;
-use Symfony\Component\Security\Exception\DisabledException;
-use Symfony\Component\Security\Exception\AccountExpiredException;
-
/*
* This file is part of the Symfony package.
*
@@ -16,6 +9,13 @@ use Symfony\Component\Security\Exception\AccountExpiredException;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\User;
+
+use Symfony\Component\Security\Exception\CredentialsExpiredException;
+use Symfony\Component\Security\Exception\LockedException;
+use Symfony\Component\Security\Exception\DisabledException;
+use Symfony\Component\Security\Exception\AccountExpiredException;
+
/**
* AccountChecker checks the user account flags.
*
diff --git a/User/AccountCheckerInterface.php b/User/AccountCheckerInterface.php
index d3cfe0b..776a99d 100644
--- a/User/AccountCheckerInterface.php
+++ b/User/AccountCheckerInterface.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\User;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\User;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\User;
+
/**
* AccountCheckerInterface checks user account when authentication occurs.
*
diff --git a/User/AccountInterface.php b/User/AccountInterface.php
index b901b08..0bc488f 100644
--- a/User/AccountInterface.php
+++ b/User/AccountInterface.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\User;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\User;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\User;
+
/**
* AccountInterface is the interface that user classes must implement.
*
diff --git a/User/AdvancedAccountInterface.php b/User/AdvancedAccountInterface.php
index 7cdd547..d5b6ae3 100644
--- a/User/AdvancedAccountInterface.php
+++ b/User/AdvancedAccountInterface.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\User;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\User;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\User;
+
/**
* AdvancedAccountInterface adds status flags to a regular account.
*
diff --git a/User/InMemoryUserProvider.php b/User/InMemoryUserProvider.php
index 566d2a8..e83f7fa 100644
--- a/User/InMemoryUserProvider.php
+++ b/User/InMemoryUserProvider.php
@@ -1,10 +1,5 @@
<?php
-namespace Symfony\Component\Security\User;
-
-use Symfony\Component\Security\Exception\UsernameNotFoundException;
-use Symfony\Component\Security\Exception\UnsupportedAccountException;
-
/*
* This file is part of the Symfony package.
*
@@ -14,6 +9,11 @@ use Symfony\Component\Security\Exception\UnsupportedAccountException;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\User;
+
+use Symfony\Component\Security\Exception\UsernameNotFoundException;
+use Symfony\Component\Security\Exception\UnsupportedAccountException;
+
/**
* InMemoryUserProvider is a simple non persistent user provider.
*
diff --git a/User/User.php b/User/User.php
index 80ec9c1..4885ca0 100644
--- a/User/User.php
+++ b/User/User.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\User;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\User;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\User;
+
/**
* User is the user implementation used by the in-memory user provider.
*
diff --git a/User/UserProviderInterface.php b/User/UserProviderInterface.php
index ac7e470..4e182ee 100644
--- a/User/UserProviderInterface.php
+++ b/User/UserProviderInterface.php
@@ -1,7 +1,5 @@
<?php
-namespace Symfony\Component\Security\User;
-
/*
* This file is part of the Symfony package.
*
@@ -11,6 +9,8 @@ namespace Symfony\Component\Security\User;
* file that was distributed with this source code.
*/
+namespace Symfony\Component\Security\User;
+
/**
* UserProviderInterface is the implementation that all user provider must
* implement.