From 782678123512f8d1e606ebd6f96895c2500ed179 Mon Sep 17 00:00:00 2001 From: Bernhard Schussek Date: Mon, 16 Sep 2013 10:03:00 +0200 Subject: [PATCH 1/4] [Security] Split the component into 3 sub-components Core, ACL, HTTP --- composer.json | 3 ++ phpunit.xml.dist | 2 + src/Symfony/Component/Security/Acl/.gitignore | 3 ++ src/Symfony/Component/Security/Acl/LICENSE | 19 ++++++++ src/Symfony/Component/Security/Acl/README.md | 23 ++++++++++ .../Tests}/Dbal/AclProviderBenchmarkTest.php | 2 +- .../Tests}/Dbal/AclProviderTest.php | 2 +- .../Tests}/Dbal/MutableAclProviderTest.php | 2 +- .../Acl => Acl/Tests}/Domain/AclTest.php | 2 +- .../Tests}/Domain/AuditLoggerTest.php | 2 +- .../Tests}/Domain/DoctrineAclCacheTest.php | 2 +- .../Acl => Acl/Tests}/Domain/EntryTest.php | 0 .../Tests}/Domain/FieldEntryTest.php | 2 +- .../ObjectIdentityRetrievalStrategyTest.php | 2 +- .../Tests}/Domain/ObjectIdentityTest.php | 16 +++---- .../Domain/PermissionGrantingStrategyTest.php | 2 +- .../Domain/RoleSecurityIdentityTest.php | 2 +- .../SecurityIdentityRetrievalStrategyTest.php | 4 +- .../Domain/UserSecurityIdentityTest.php | 6 +-- .../Permission/BasicPermissionMapTest.php | 2 +- .../Tests}/Permission/MaskBuilderTest.php | 2 +- .../Acl => Acl/Tests}/Voter/AclVoterTest.php | 2 +- .../Component/Security/Acl/composer.json | 42 ++++++++++++++++++ .../Component/Security/Acl/phpunit.xml.dist | 29 ++++++++++++ .../Component/Security/Core/.gitignore | 3 ++ src/Symfony/Component/Security/Core/LICENSE | 19 ++++++++ src/Symfony/Component/Security/Core/README.md | 23 ++++++++++ .../AuthenticationProviderManagerTest.php | 2 +- .../AuthenticationTrustResolverTest.php | 2 +- .../AnonymousAuthenticationProviderTest.php | 2 +- .../DaoAuthenticationProviderTest.php | 2 +- ...uthenticatedAuthenticationProviderTest.php | 2 +- .../RememberMeAuthenticationProviderTest.php | 2 +- .../UserAuthenticationProviderTest.php | 2 +- .../RememberMe/InMemoryTokenProviderTest.php | 2 +- .../RememberMe/PersistentTokenTest.php | 2 +- .../Token/AbstractTokenTest.php | 2 +- .../Token/AnonymousTokenTest.php | 2 +- .../Token/PreAuthenticatedTokenTest.php | 2 +- .../Token/RememerMeTokenTest.php | 2 +- .../Token/UsernamePasswordTokenTest.php | 2 +- .../AccessDecisionManagerTest.php | 2 +- .../Voter/AuthenticatedVoterTest.php | 2 +- .../Voter/RoleHierarchyVoterTest.php | 2 +- .../Authorization/Voter/RoleVoterTest.php | 2 +- .../Encoder/BCryptPasswordEncoderTest.php | 2 +- .../Encoder/BasePasswordEncoderTest.php | 2 +- .../Tests}/Encoder/EncoderFactoryTest.php | 8 ++-- .../MessageDigestPasswordEncoderTest.php | 2 +- .../Encoder/Pbkdf2PasswordEncoderTest.php | 2 +- .../Encoder/PlaintextPasswordEncoderTest.php | 2 +- .../Tests}/Role/RoleHierarchyTest.php | 2 +- .../Core => Core/Tests}/Role/RoleTest.php | 2 +- .../Tests}/Role/SwitchUserRoleTest.php | 2 +- .../Tests}/SecurityContextTest.php | 2 +- .../Tests}/User/AccountCheckerTest.php | 2 +- .../Tests}/User/ChainUserProviderTest.php | 2 +- .../Tests}/User/InMemoryProviderTest.php | 2 +- .../Core => Core/Tests}/User/UserTest.php | 2 +- .../Tests}/Util/ClassUtilsTest.php | 12 ++--- .../Tests}/Util/SecureRandomTest.php | 2 +- .../Tests}/Util/StringUtilsTest.php | 2 +- .../Constraints/UserPasswordValidatorTest.php | 2 +- .../Component/Security/Core/composer.json | 42 ++++++++++++++++++ .../Component/Security/Core/phpunit.xml.dist | 29 ++++++++++++ .../Component/Security/Http/.gitignore | 3 ++ src/Symfony/Component/Security/Http/LICENSE | 19 ++++++++ src/Symfony/Component/Security/Http/README.md | 23 ++++++++++ .../Http => Http/Tests}/AccessMapTest.php | 2 +- ...efaultAuthenticationFailureHandlerTest.php | 2 +- ...efaultAuthenticationSuccessHandlerTest.php | 2 +- .../BasicAuthenticationEntryPointTest.php | 2 +- .../DigestAuthenticationEntryPointTest.php | 2 +- .../FormAuthenticationEntryPointTest.php | 2 +- .../RetryAuthenticationEntryPointTest.php | 2 +- .../AbstractPreAuthenticatedListenerTest.php | 2 +- .../Tests}/Firewall/AccessListenerTest.php | 2 +- .../AnonymousAuthenticationListenerTest.php | 2 +- .../BasicAuthenticationListenerTest.php | 2 +- .../Tests}/Firewall/ChannelListenerTest.php | 2 +- .../Tests}/Firewall/ContextListenerTest.php | 2 +- .../Tests}/Firewall/DigestDataTest.php | 2 +- .../Tests}/Firewall/LogoutListenerTest.php | 2 +- .../Firewall/RememberMeListenerTest.php | 2 +- .../Firewall/SwitchUserListenerTest.php | 2 +- .../X509AuthenticationListenerTest.php | 2 +- .../Http => Http/Tests}/FirewallMapTest.php | 2 +- .../Http => Http/Tests}/FirewallTest.php | 2 +- .../Http => Http/Tests}/HttpUtilsTest.php | 2 +- .../CookieClearingLogoutHandlerTest.php | 2 +- .../DefaultLogoutSuccessHandlerTest.php | 2 +- .../Logout/SessionLogoutHandlerTest.php | 2 +- .../AbstractRememberMeServicesTest.php | 2 +- ...istentTokenBasedRememberMeServicesTest.php | 2 +- .../RememberMe/ResponseListenerTest.php | 2 +- .../TokenBasedRememberMeServicesTest.php | 2 +- .../SessionAuthenticationStrategyTest.php | 2 +- .../Component/Security/Http/composer.json | 44 +++++++++++++++++++ .../Component/Security/Http/phpunit.xml.dist | 29 ++++++++++++ src/Symfony/Component/Security/composer.json | 5 +++ .../Component/Security/phpunit.xml.dist | 8 +++- 101 files changed, 465 insertions(+), 101 deletions(-) create mode 100644 src/Symfony/Component/Security/Acl/.gitignore create mode 100644 src/Symfony/Component/Security/Acl/LICENSE create mode 100644 src/Symfony/Component/Security/Acl/README.md rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Dbal/AclProviderBenchmarkTest.php (99%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Dbal/AclProviderTest.php (99%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Dbal/MutableAclProviderTest.php (99%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/AclTest.php (99%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/AuditLoggerTest.php (97%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/DoctrineAclCacheTest.php (98%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/EntryTest.php (100%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/FieldEntryTest.php (97%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/ObjectIdentityRetrievalStrategyTest.php (95%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/ObjectIdentityTest.php (84%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/PermissionGrantingStrategyTest.php (99%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/RoleSecurityIdentityTest.php (96%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/SecurityIdentityRetrievalStrategyTest.php (98%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Domain/UserSecurityIdentityTest.php (93%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Permission/BasicPermissionMapTest.php (90%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Permission/MaskBuilderTest.php (98%) rename src/Symfony/Component/Security/{Tests/Acl => Acl/Tests}/Voter/AclVoterTest.php (99%) create mode 100644 src/Symfony/Component/Security/Acl/composer.json create mode 100644 src/Symfony/Component/Security/Acl/phpunit.xml.dist create mode 100644 src/Symfony/Component/Security/Core/.gitignore create mode 100644 src/Symfony/Component/Security/Core/LICENSE create mode 100644 src/Symfony/Component/Security/Core/README.md rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/AuthenticationProviderManagerTest.php (98%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/AuthenticationTrustResolverTest.php (97%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Provider/AnonymousAuthenticationProviderTest.php (96%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Provider/DaoAuthenticationProviderTest.php (99%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php (98%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Provider/RememberMeAuthenticationProviderTest.php (98%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Provider/UserAuthenticationProviderTest.php (99%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/RememberMe/InMemoryTokenProviderTest.php (96%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/RememberMe/PersistentTokenTest.php (93%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Token/AbstractTokenTest.php (99%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Token/AnonymousTokenTest.php (94%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Token/PreAuthenticatedTokenTest.php (95%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Token/RememerMeTokenTest.php (96%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authentication/Token/UsernamePasswordTokenTest.php (96%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authorization/AccessDecisionManagerTest.php (98%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authorization/Voter/AuthenticatedVoterTest.php (98%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authorization/Voter/RoleHierarchyVoterTest.php (94%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Authorization/Voter/RoleVoterTest.php (96%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Encoder/BCryptPasswordEncoderTest.php (97%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Encoder/BasePasswordEncoderTest.php (97%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Encoder/EncoderFactoryTest.php (94%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Encoder/MessageDigestPasswordEncoderTest.php (96%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Encoder/Pbkdf2PasswordEncoderTest.php (96%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Encoder/PlaintextPasswordEncoderTest.php (95%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Role/RoleHierarchyTest.php (96%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Role/RoleTest.php (89%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Role/SwitchUserRoleTest.php (93%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/SecurityContextTest.php (98%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/User/AccountCheckerTest.php (98%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/User/ChainUserProviderTest.php (99%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/User/InMemoryProviderTest.php (97%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/User/UserTest.php (98%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Util/ClassUtilsTest.php (77%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Util/SecureRandomTest.php (99%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Util/StringUtilsTest.php (90%) rename src/Symfony/Component/Security/{Tests/Core => Core/Tests}/Validator/Constraints/UserPasswordValidatorTest.php (98%) create mode 100644 src/Symfony/Component/Security/Core/composer.json create mode 100644 src/Symfony/Component/Security/Core/phpunit.xml.dist create mode 100644 src/Symfony/Component/Security/Http/.gitignore create mode 100644 src/Symfony/Component/Security/Http/LICENSE create mode 100644 src/Symfony/Component/Security/Http/README.md rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/AccessMapTest.php (97%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Authentication/DefaultAuthenticationFailureHandlerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Authentication/DefaultAuthenticationSuccessHandlerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/EntryPoint/BasicAuthenticationEntryPointTest.php (95%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/EntryPoint/DigestAuthenticationEntryPointTest.php (97%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/EntryPoint/FormAuthenticationEntryPointTest.php (97%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/EntryPoint/RetryAuthenticationEntryPointTest.php (96%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/AbstractPreAuthenticatedListenerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/AccessListenerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/AnonymousAuthenticationListenerTest.php (97%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/BasicAuthenticationListenerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/ChannelListenerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/ContextListenerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/DigestDataTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/LogoutListenerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/RememberMeListenerTest.php (98%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/SwitchUserListenerTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Firewall/X509AuthenticationListenerTest.php (98%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/FirewallMapTest.php (98%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/FirewallTest.php (98%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/HttpUtilsTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Logout/CookieClearingLogoutHandlerTest.php (96%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Logout/DefaultLogoutSuccessHandlerTest.php (95%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Logout/SessionLogoutHandlerTest.php (95%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/RememberMe/AbstractRememberMeServicesTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/RememberMe/PersistentTokenBasedRememberMeServicesTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/RememberMe/ResponseListenerTest.php (97%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/RememberMe/TokenBasedRememberMeServicesTest.php (99%) rename src/Symfony/Component/Security/{Tests/Http => Http/Tests}/Session/SessionAuthenticationStrategyTest.php (97%) create mode 100644 src/Symfony/Component/Security/Http/composer.json create mode 100644 src/Symfony/Component/Security/Http/phpunit.xml.dist diff --git a/composer.json b/composer.json index a3098c8585..dafa32ef0d 100644 --- a/composer.json +++ b/composer.json @@ -49,6 +49,9 @@ "symfony/proxy-manager-bridge": "self.version", "symfony/routing": "self.version", "symfony/security": "self.version", + "symfony/security-acl": "self.version", + "symfony/security-core": "self.version", + "symfony/security-http": "self.version", "symfony/security-bundle": "self.version", "symfony/serializer": "self.version", "symfony/stopwatch": "self.version", diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 823b03f7c0..66323e43d1 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -21,6 +21,7 @@ ./src/Symfony/Bridge/*/Tests/ ./src/Symfony/Component/*/Tests/ + ./src/Symfony/Component/*/*/Tests/ ./src/Symfony/Bundle/*/Tests/ @@ -37,6 +38,7 @@ ./src/Symfony/Bridge/*/Tests ./src/Symfony/Component/*/Tests + ./src/Symfony/Component/*/*/Tests ./src/Symfony/Bundle/*/Tests ./src/Symfony/Bundle/*/Resources ./src/Symfony/Component/*/Resources diff --git a/src/Symfony/Component/Security/Acl/.gitignore b/src/Symfony/Component/Security/Acl/.gitignore new file mode 100644 index 0000000000..c49a5d8df5 --- /dev/null +++ b/src/Symfony/Component/Security/Acl/.gitignore @@ -0,0 +1,3 @@ +vendor/ +composer.lock +phpunit.xml diff --git a/src/Symfony/Component/Security/Acl/LICENSE b/src/Symfony/Component/Security/Acl/LICENSE new file mode 100644 index 0000000000..88a57f8d8d --- /dev/null +++ b/src/Symfony/Component/Security/Acl/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2004-2013 Fabien Potencier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/src/Symfony/Component/Security/Acl/README.md b/src/Symfony/Component/Security/Acl/README.md new file mode 100644 index 0000000000..bf0e7b24c7 --- /dev/null +++ b/src/Symfony/Component/Security/Acl/README.md @@ -0,0 +1,23 @@ +Security Component - ACL (Access Control List) +============================================== + +Security provides an infrastructure for sophisticated authorization systems, +which makes it possible to easily separate the actual authorization logic from +so called user providers that hold the users credentials. It is inspired by +the Java Spring framework. + +Resources +--------- + +Documentation: + +http://symfony.com/doc/2.4/book/security.html + +Resources +--------- + +You can run the unit tests with the following command: + + $ cd path/to/Symfony/Component/Security/Acl/ + $ composer.phar install --dev + $ phpunit diff --git a/src/Symfony/Component/Security/Tests/Acl/Dbal/AclProviderBenchmarkTest.php b/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderBenchmarkTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Acl/Dbal/AclProviderBenchmarkTest.php rename to src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderBenchmarkTest.php index f6e3ba87f0..8f68f1f5c7 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Dbal/AclProviderBenchmarkTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderBenchmarkTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Dbal; +namespace Symfony\Component\Security\Acl\Tests\Dbal; use Symfony\Component\Security\Acl\Dbal\AclProvider; use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy; diff --git a/src/Symfony/Component/Security/Tests/Acl/Dbal/AclProviderTest.php b/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Acl/Dbal/AclProviderTest.php rename to src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderTest.php index d701e226ce..717a2585e4 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Dbal/AclProviderTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Dbal/AclProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Dbal; +namespace Symfony\Component\Security\Acl\Tests\Dbal; use Symfony\Component\Security\Acl\Dbal\AclProvider; use Symfony\Component\Security\Acl\Domain\PermissionGrantingStrategy; diff --git a/src/Symfony/Component/Security/Tests/Acl/Dbal/MutableAclProviderTest.php b/src/Symfony/Component/Security/Acl/Tests/Dbal/MutableAclProviderTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Acl/Dbal/MutableAclProviderTest.php rename to src/Symfony/Component/Security/Acl/Tests/Dbal/MutableAclProviderTest.php index 69778c9153..98a34b6c38 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Dbal/MutableAclProviderTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Dbal/MutableAclProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Dbal; +namespace Symfony\Component\Security\Acl\Tests\Dbal; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Model\FieldEntryInterface; diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/AclTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/AclTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Acl/Domain/AclTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/AclTest.php index 390bebf47c..2034c214de 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/AclTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/AclTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/AuditLoggerTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/AuditLoggerTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Acl/Domain/AuditLoggerTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/AuditLoggerTest.php index a0f38eb42c..fe56b8cbea 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/AuditLoggerTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/AuditLoggerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; class AuditLoggerTest extends \PHPUnit_Framework_TestCase { diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/DoctrineAclCacheTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/DoctrineAclCacheTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Acl/Domain/DoctrineAclCacheTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/DoctrineAclCacheTest.php index 93c87c1494..128f2c8483 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/DoctrineAclCacheTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/DoctrineAclCacheTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/EntryTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/EntryTest.php similarity index 100% rename from src/Symfony/Component/Security/Tests/Acl/Domain/EntryTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/EntryTest.php diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/FieldEntryTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/FieldEntryTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Acl/Domain/FieldEntryTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/FieldEntryTest.php index 7f0cbc0760..735e2e86da 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/FieldEntryTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/FieldEntryTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; use Symfony\Component\Security\Acl\Domain\FieldEntry; diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/ObjectIdentityRetrievalStrategyTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityRetrievalStrategyTest.php similarity index 95% rename from src/Symfony/Component/Security/Tests/Acl/Domain/ObjectIdentityRetrievalStrategyTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityRetrievalStrategyTest.php index e89e1ef125..59fc3bdb7e 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/ObjectIdentityRetrievalStrategyTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityRetrievalStrategyTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; use Symfony\Component\Security\Acl\Domain\ObjectIdentityRetrievalStrategy; diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/ObjectIdentityTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityTest.php similarity index 84% rename from src/Symfony/Component/Security/Tests/Acl/Domain/ObjectIdentityTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityTest.php index 9281fd53e4..4eab7b2a7f 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/ObjectIdentityTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/ObjectIdentityTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain +namespace Symfony\Component\Security\Acl\Tests\Domain { use Symfony\Component\Security\Acl\Domain\ObjectIdentity; @@ -26,10 +26,10 @@ namespace Symfony\Component\Security\Tests\Acl\Domain // Test that constructor never changes passed type, even with proxies public function testConstructorWithProxy() { - $id = new ObjectIdentity('fooid', 'Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Acl\Domain\TestDomainObject'); + $id = new ObjectIdentity('fooid', 'Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Acl\Tests\Domain\TestDomainObject'); $this->assertEquals('fooid', $id->getIdentifier()); - $this->assertEquals('Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Acl\Domain\TestDomainObject', $id->getType()); + $this->assertEquals('Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Acl\Tests\Domain\TestDomainObject', $id->getType()); } public function testFromDomainObjectPrefersInterfaceOverGetId() @@ -54,14 +54,14 @@ namespace Symfony\Component\Security\Tests\Acl\Domain { $id = ObjectIdentity::fromDomainObject(new TestDomainObject()); $this->assertEquals('getId()', $id->getIdentifier()); - $this->assertEquals('Symfony\Component\Security\Tests\Acl\Domain\TestDomainObject', $id->getType()); + $this->assertEquals('Symfony\Component\Security\Acl\Tests\Domain\TestDomainObject', $id->getType()); } public function testFromDomainObjectWithProxy() { - $id = ObjectIdentity::fromDomainObject(new \Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Acl\Domain\TestDomainObject()); + $id = ObjectIdentity::fromDomainObject(new \Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Acl\Tests\Domain\TestDomainObject()); $this->assertEquals('getId()', $id->getIdentifier()); - $this->assertEquals('Symfony\Component\Security\Tests\Acl\Domain\TestDomainObject', $id->getType()); + $this->assertEquals('Symfony\Component\Security\Acl\Tests\Domain\TestDomainObject', $id->getType()); } /** @@ -101,9 +101,9 @@ namespace Symfony\Component\Security\Tests\Acl\Domain } } -namespace Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Acl\Domain +namespace Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Acl\Tests\Domain { - class TestDomainObject extends \Symfony\Component\Security\Tests\Acl\Domain\TestDomainObject + class TestDomainObject extends \Symfony\Component\Security\Acl\Tests\Domain\TestDomainObject { } } diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/PermissionGrantingStrategyTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/PermissionGrantingStrategyTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Acl/Domain/PermissionGrantingStrategyTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/PermissionGrantingStrategyTest.php index 964aa1fd04..490d256338 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/PermissionGrantingStrategyTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/PermissionGrantingStrategyTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; use Symfony\Component\Security\Acl\Domain\ObjectIdentity; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/RoleSecurityIdentityTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/RoleSecurityIdentityTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Acl/Domain/RoleSecurityIdentityTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/RoleSecurityIdentityTest.php index 341f33ca48..ad5f23639f 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/RoleSecurityIdentityTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/RoleSecurityIdentityTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/SecurityIdentityRetrievalStrategyTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/SecurityIdentityRetrievalStrategyTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Acl/Domain/SecurityIdentityRetrievalStrategyTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/SecurityIdentityRetrievalStrategyTest.php index f649653db0..02fbe679f1 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/SecurityIdentityRetrievalStrategyTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/SecurityIdentityRetrievalStrategyTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; @@ -88,7 +88,7 @@ class SecurityIdentityRetrievalStrategyTest extends \PHPUnit_Framework_TestCase new RoleSecurityIdentity('IS_AUTHENTICATED_ANONYMOUSLY'), )), array(new CustomUserImpl('johannes'), array('ROLE_FOO'), 'fullFledged', array( - new UserSecurityIdentity('johannes', 'Symfony\Component\Security\Tests\Acl\Domain\CustomUserImpl'), + new UserSecurityIdentity('johannes', 'Symfony\Component\Security\Acl\Tests\Domain\CustomUserImpl'), new RoleSecurityIdentity('ROLE_FOO'), new RoleSecurityIdentity('IS_AUTHENTICATED_FULLY'), new RoleSecurityIdentity('IS_AUTHENTICATED_REMEMBERED'), diff --git a/src/Symfony/Component/Security/Tests/Acl/Domain/UserSecurityIdentityTest.php b/src/Symfony/Component/Security/Acl/Tests/Domain/UserSecurityIdentityTest.php similarity index 93% rename from src/Symfony/Component/Security/Tests/Acl/Domain/UserSecurityIdentityTest.php rename to src/Symfony/Component/Security/Acl/Tests/Domain/UserSecurityIdentityTest.php index 1d6a3c5bca..09d3f0d560 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Domain/UserSecurityIdentityTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Domain/UserSecurityIdentityTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Domain; +namespace Symfony\Component\Security\Acl\Tests\Domain; use Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity; use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity; @@ -27,10 +27,10 @@ class UserSecurityIdentityTest extends \PHPUnit_Framework_TestCase // Test that constructor never changes the type, even for proxies public function testConstructorWithProxy() { - $id = new UserSecurityIdentity('foo', 'Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Acl\Domain\Foo'); + $id = new UserSecurityIdentity('foo', 'Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Acl\Tests\Domain\Foo'); $this->assertEquals('foo', $id->getUsername()); - $this->assertEquals('Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Acl\Domain\Foo', $id->getClass()); + $this->assertEquals('Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Acl\Tests\Domain\Foo', $id->getClass()); } /** diff --git a/src/Symfony/Component/Security/Tests/Acl/Permission/BasicPermissionMapTest.php b/src/Symfony/Component/Security/Acl/Tests/Permission/BasicPermissionMapTest.php similarity index 90% rename from src/Symfony/Component/Security/Tests/Acl/Permission/BasicPermissionMapTest.php rename to src/Symfony/Component/Security/Acl/Tests/Permission/BasicPermissionMapTest.php index 743634ba59..2afe588f03 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Permission/BasicPermissionMapTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Permission/BasicPermissionMapTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Permission; +namespace Symfony\Component\Security\Acl\Tests\Permission; use Symfony\Component\Security\Acl\Permission\BasicPermissionMap; diff --git a/src/Symfony/Component/Security/Tests/Acl/Permission/MaskBuilderTest.php b/src/Symfony/Component/Security/Acl/Tests/Permission/MaskBuilderTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Acl/Permission/MaskBuilderTest.php rename to src/Symfony/Component/Security/Acl/Tests/Permission/MaskBuilderTest.php index 848a6f2bfd..9ec6538871 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Permission/MaskBuilderTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Permission/MaskBuilderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Util; +namespace Symfony\Component\Security\Acl\Tests\Util; use Symfony\Component\Security\Acl\Permission\MaskBuilder; diff --git a/src/Symfony/Component/Security/Tests/Acl/Voter/AclVoterTest.php b/src/Symfony/Component/Security/Acl/Tests/Voter/AclVoterTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Acl/Voter/AclVoterTest.php rename to src/Symfony/Component/Security/Acl/Tests/Voter/AclVoterTest.php index 2474515b5c..6bec23124c 100644 --- a/src/Symfony/Component/Security/Tests/Acl/Voter/AclVoterTest.php +++ b/src/Symfony/Component/Security/Acl/Tests/Voter/AclVoterTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Acl\Voter; +namespace Symfony\Component\Security\Acl\Tests\Voter; use Symfony\Component\Security\Acl\Exception\NoAceFoundException; use Symfony\Component\Security\Acl\Voter\FieldVote; diff --git a/src/Symfony/Component/Security/Acl/composer.json b/src/Symfony/Component/Security/Acl/composer.json new file mode 100644 index 0000000000..3d05989ba0 --- /dev/null +++ b/src/Symfony/Component/Security/Acl/composer.json @@ -0,0 +1,42 @@ +{ + "name": "symfony/security-acl", + "type": "library", + "description": "Symfony Security Component - ACL (Access Control List)", + "keywords": [], + "homepage": "http://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + } + ], + "require": { + "php": ">=5.3.3", + "symfony/security-core": "~2.4" + }, + "require-dev": { + "doctrine/common": "~2.2", + "doctrine/dbal": "~2.2", + "psr/log": "~1.0" + }, + "suggest": { + "symfony/class-loader": "", + "symfony/finder": "", + "doctrine/dbal": "to use the built-in ACL implementation" + }, + "autoload": { + "psr-0": { "Symfony\\Component\\Security\\Acl\\": "" } + }, + "target-dir": "Symfony/Component/Security/Acl", + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + } +} diff --git a/src/Symfony/Component/Security/Acl/phpunit.xml.dist b/src/Symfony/Component/Security/Acl/phpunit.xml.dist new file mode 100644 index 0000000000..65209485df --- /dev/null +++ b/src/Symfony/Component/Security/Acl/phpunit.xml.dist @@ -0,0 +1,29 @@ + + + + + + ./Tests/ + + + + + + ./ + + ./vendor + ./Tests + + + + diff --git a/src/Symfony/Component/Security/Core/.gitignore b/src/Symfony/Component/Security/Core/.gitignore new file mode 100644 index 0000000000..c49a5d8df5 --- /dev/null +++ b/src/Symfony/Component/Security/Core/.gitignore @@ -0,0 +1,3 @@ +vendor/ +composer.lock +phpunit.xml diff --git a/src/Symfony/Component/Security/Core/LICENSE b/src/Symfony/Component/Security/Core/LICENSE new file mode 100644 index 0000000000..88a57f8d8d --- /dev/null +++ b/src/Symfony/Component/Security/Core/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2004-2013 Fabien Potencier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/src/Symfony/Component/Security/Core/README.md b/src/Symfony/Component/Security/Core/README.md new file mode 100644 index 0000000000..673b161b22 --- /dev/null +++ b/src/Symfony/Component/Security/Core/README.md @@ -0,0 +1,23 @@ +Security Component - Core +========================= + +Security provides an infrastructure for sophisticated authorization systems, +which makes it possible to easily separate the actual authorization logic from +so called user providers that hold the users credentials. It is inspired by +the Java Spring framework. + +Resources +--------- + +Documentation: + +http://symfony.com/doc/2.4/book/security.html + +Resources +--------- + +You can run the unit tests with the following command: + + $ cd path/to/Symfony/Component/Security/Core/ + $ composer.phar install --dev + $ phpunit diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationProviderManagerTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationProviderManagerTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationProviderManagerTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationProviderManagerTest.php index 12eb568a29..f3aaa8548f 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationProviderManagerTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationProviderManagerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication; +namespace Symfony\Component\Security\Core\Tests\Authentication; use Symfony\Component\Security\Core\Authentication\AuthenticationProviderManager; use Symfony\Component\Security\Core\Exception\ProviderNotFoundException; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationTrustResolverTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationTrustResolverTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php index c3b15852e6..07ce08b6da 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/AuthenticationTrustResolverTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/AuthenticationTrustResolverTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication; +namespace Symfony\Component\Security\Core\Tests\Authentication; use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/AnonymousAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Provider/AnonymousAuthenticationProviderTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php index d0da14724e..5a189b0ec6 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/AnonymousAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/AnonymousAuthenticationProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Provider; +namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; use Symfony\Component\Security\Core\Authentication\Provider\AnonymousAuthenticationProvider; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/DaoAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/DaoAuthenticationProviderTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Provider/DaoAuthenticationProviderTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Provider/DaoAuthenticationProviderTest.php index 8b270615dc..ed4fe10634 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/DaoAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/DaoAuthenticationProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Provider; +namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; use Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php index f7ffb1e509..522edb462b 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Provider; +namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; use Symfony\Component\Security\Core\Authentication\Provider\PreAuthenticatedAuthenticationProvider; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/RememberMeAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Provider/RememberMeAuthenticationProviderTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php index 5e250e0d07..43da274d5b 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/RememberMeAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/RememberMeAuthenticationProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Provider; +namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; use Symfony\Component\Security\Core\Authentication\Provider\RememberMeAuthenticationProvider; use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/UserAuthenticationProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Provider/UserAuthenticationProviderTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php index 1516a5f279..c2b57817e3 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Provider/UserAuthenticationProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Provider/UserAuthenticationProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Provider; +namespace Symfony\Component\Security\Core\Tests\Authentication\Provider; use Symfony\Component\Security\Core\Authentication\Provider\UserAuthenticationProvider; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/RememberMe/InMemoryTokenProviderTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Core/Authentication/RememberMe/InMemoryTokenProviderTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php index 1739714f2b..3bdf38cff6 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/RememberMe/InMemoryTokenProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/InMemoryTokenProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\RememberMe; +namespace Symfony\Component\Security\Core\Tests\Authentication\RememberMe; use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken; use Symfony\Component\Security\Core\Authentication\RememberMe\InMemoryTokenProvider; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/RememberMe/PersistentTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/PersistentTokenTest.php similarity index 93% rename from src/Symfony/Component/Security/Tests/Core/Authentication/RememberMe/PersistentTokenTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/PersistentTokenTest.php index 3903591c75..903c0309fc 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/RememberMe/PersistentTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/RememberMe/PersistentTokenTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\RememberMe; +namespace Symfony\Component\Security\Core\Tests\Authentication\RememberMe; use Symfony\Component\Security\Core\Authentication\RememberMe\PersistentToken; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/AbstractTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Token/AbstractTokenTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php index 783c27e1bb..928ee40c8b 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/AbstractTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AbstractTokenTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Token; +namespace Symfony\Component\Security\Core\Tests\Authentication\Token; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/AnonymousTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AnonymousTokenTest.php similarity index 94% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Token/AnonymousTokenTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Token/AnonymousTokenTest.php index 135397bff3..b5cf00683a 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/AnonymousTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/AnonymousTokenTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Token; +namespace Symfony\Component\Security\Core\Tests\Authentication\Token; use Symfony\Component\Security\Core\Authentication\Token\AnonymousToken; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/PreAuthenticatedTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/PreAuthenticatedTokenTest.php similarity index 95% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Token/PreAuthenticatedTokenTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Token/PreAuthenticatedTokenTest.php index 59a533a5b7..77d2608996 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/PreAuthenticatedTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/PreAuthenticatedTokenTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Token; +namespace Symfony\Component\Security\Core\Tests\Authentication\Token; use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememerMeTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememerMeTokenTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememerMeTokenTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememerMeTokenTest.php index 03275faa40..60d88c290c 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/RememerMeTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/RememerMeTokenTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Token; +namespace Symfony\Component\Security\Core\Tests\Authentication\Token; use Symfony\Component\Security\Core\Authentication\Token\RememberMeToken; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/UsernamePasswordTokenTest.php b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/UsernamePasswordTokenTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Core/Authentication/Token/UsernamePasswordTokenTest.php rename to src/Symfony/Component/Security/Core/Tests/Authentication/Token/UsernamePasswordTokenTest.php index 3da20eb880..99830c73c7 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authentication/Token/UsernamePasswordTokenTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authentication/Token/UsernamePasswordTokenTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authentication\Token; +namespace Symfony\Component\Security\Core\Tests\Authentication\Token; use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Core/Authorization/AccessDecisionManagerTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/Authorization/AccessDecisionManagerTest.php rename to src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php index ead97d2bc6..0353f997b4 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authorization/AccessDecisionManagerTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/AccessDecisionManagerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authorization; +namespace Symfony\Component\Security\Core\Tests\Authorization; use Symfony\Component\Security\Core\Authorization\AccessDecisionManager; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; diff --git a/src/Symfony/Component/Security/Tests/Core/Authorization/Voter/AuthenticatedVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AuthenticatedVoterTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/Authorization/Voter/AuthenticatedVoterTest.php rename to src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AuthenticatedVoterTest.php index b077712bc9..4679c0ff0e 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authorization/Voter/AuthenticatedVoterTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AuthenticatedVoterTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authorization\Voter; +namespace Symfony\Component\Security\Core\Tests\Authorization\Voter; use Symfony\Component\Security\Core\Authentication\AuthenticationTrustResolver; use Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter; diff --git a/src/Symfony/Component/Security/Tests/Core/Authorization/Voter/RoleHierarchyVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleHierarchyVoterTest.php similarity index 94% rename from src/Symfony/Component/Security/Tests/Core/Authorization/Voter/RoleHierarchyVoterTest.php rename to src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleHierarchyVoterTest.php index a50fa791e0..c50ecf38c5 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authorization/Voter/RoleHierarchyVoterTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleHierarchyVoterTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authorization\Voter; +namespace Symfony\Component\Security\Core\Tests\Authorization\Voter; use Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; diff --git a/src/Symfony/Component/Security/Tests/Core/Authorization/Voter/RoleVoterTest.php b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Core/Authorization/Voter/RoleVoterTest.php rename to src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php index 63608ebb3b..62e3013254 100644 --- a/src/Symfony/Component/Security/Tests/Core/Authorization/Voter/RoleVoterTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/RoleVoterTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Authorization\Voter; +namespace Symfony\Component\Security\Core\Tests\Authorization\Voter; use Symfony\Component\Security\Core\Authorization\Voter\RoleVoter; use Symfony\Component\Security\Core\Authorization\Voter\VoterInterface; diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/BCryptPasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/BCryptPasswordEncoderTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Core/Encoder/BCryptPasswordEncoderTest.php rename to src/Symfony/Component/Security/Core/Tests/Encoder/BCryptPasswordEncoderTest.php index 49c1051d2a..4780411071 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/BCryptPasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/BCryptPasswordEncoderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Encoder; +namespace Symfony\Component\Security\Core\Tests\Encoder; use Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder; diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/BasePasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/BasePasswordEncoderTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Core/Encoder/BasePasswordEncoderTest.php rename to src/Symfony/Component/Security/Core/Tests/Encoder/BasePasswordEncoderTest.php index 2ef1dcce9e..73fac2eefe 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/BasePasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/BasePasswordEncoderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Encoder; +namespace Symfony\Component\Security\Core\Tests\Encoder; use Symfony\Component\Security\Core\Encoder\BasePasswordEncoder; diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/EncoderFactoryTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php similarity index 94% rename from src/Symfony/Component/Security/Tests/Core/Encoder/EncoderFactoryTest.php rename to src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php index 2e55a4b6f8..18c8c4a9b0 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/EncoderFactoryTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/EncoderFactoryTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Encoder; +namespace Symfony\Component\Security\Core\Tests\Encoder; use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; use Symfony\Component\Security\Core\Encoder\EncoderFactory; @@ -52,7 +52,7 @@ class EncoderFactoryTest extends \PHPUnit_Framework_TestCase 'Symfony\Component\Security\Core\User\UserInterface' => new MessageDigestPasswordEncoder('sha1'), )); - $encoder = $factory->getEncoder('Symfony\Component\Security\Tests\Core\Encoder\SomeChildUser'); + $encoder = $factory->getEncoder('Symfony\Component\Security\Core\Tests\Encoder\SomeChildUser'); $expectedEncoder = new MessageDigestPasswordEncoder('sha1'); $this->assertEquals($expectedEncoder->encodePassword('foo', ''), $encoder->encodePassword('foo', '')); } @@ -71,10 +71,10 @@ class EncoderFactoryTest extends \PHPUnit_Framework_TestCase public function testGetEncoderConfiguredForConcreteClassWithClassName() { $factory = new EncoderFactory(array( - 'Symfony\Component\Security\Tests\Core\Encoder\SomeUser' => new MessageDigestPasswordEncoder('sha1'), + 'Symfony\Component\Security\Core\Tests\Encoder\SomeUser' => new MessageDigestPasswordEncoder('sha1'), )); - $encoder = $factory->getEncoder('Symfony\Component\Security\Tests\Core\Encoder\SomeChildUser'); + $encoder = $factory->getEncoder('Symfony\Component\Security\Core\Tests\Encoder\SomeChildUser'); $expectedEncoder = new MessageDigestPasswordEncoder('sha1'); $this->assertEquals($expectedEncoder->encodePassword('foo', ''), $encoder->encodePassword('foo', '')); } diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/MessageDigestPasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/MessageDigestPasswordEncoderTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Core/Encoder/MessageDigestPasswordEncoderTest.php rename to src/Symfony/Component/Security/Core/Tests/Encoder/MessageDigestPasswordEncoderTest.php index 64032c4bf9..550d08e484 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/MessageDigestPasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/MessageDigestPasswordEncoderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Encoder; +namespace Symfony\Component\Security\Core\Tests\Encoder; use Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder; diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/Pbkdf2PasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Core/Encoder/Pbkdf2PasswordEncoderTest.php rename to src/Symfony/Component/Security/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php index 2c985439f2..ba5c4d589e 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/Pbkdf2PasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/Pbkdf2PasswordEncoderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Encoder; +namespace Symfony\Component\Security\Core\Tests\Encoder; use Symfony\Component\Security\Core\Encoder\Pbkdf2PasswordEncoder; diff --git a/src/Symfony/Component/Security/Tests/Core/Encoder/PlaintextPasswordEncoderTest.php b/src/Symfony/Component/Security/Core/Tests/Encoder/PlaintextPasswordEncoderTest.php similarity index 95% rename from src/Symfony/Component/Security/Tests/Core/Encoder/PlaintextPasswordEncoderTest.php rename to src/Symfony/Component/Security/Core/Tests/Encoder/PlaintextPasswordEncoderTest.php index af0008f927..513a94a75d 100644 --- a/src/Symfony/Component/Security/Tests/Core/Encoder/PlaintextPasswordEncoderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Encoder/PlaintextPasswordEncoderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Encoder; +namespace Symfony\Component\Security\Core\Tests\Encoder; use Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder; diff --git a/src/Symfony/Component/Security/Tests/Core/Role/RoleHierarchyTest.php b/src/Symfony/Component/Security/Core/Tests/Role/RoleHierarchyTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Core/Role/RoleHierarchyTest.php rename to src/Symfony/Component/Security/Core/Tests/Role/RoleHierarchyTest.php index a98aed617c..df1b6a3300 100644 --- a/src/Symfony/Component/Security/Tests/Core/Role/RoleHierarchyTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Role/RoleHierarchyTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Role; +namespace Symfony\Component\Security\Core\Tests\Role; use Symfony\Component\Security\Core\Role\RoleHierarchy; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Core/Role/RoleTest.php b/src/Symfony/Component/Security/Core/Tests/Role/RoleTest.php similarity index 89% rename from src/Symfony/Component/Security/Tests/Core/Role/RoleTest.php rename to src/Symfony/Component/Security/Core/Tests/Role/RoleTest.php index e2e7ca86b6..02be07b2e0 100644 --- a/src/Symfony/Component/Security/Tests/Core/Role/RoleTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Role/RoleTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Role; +namespace Symfony\Component\Security\Core\Tests\Role; use Symfony\Component\Security\Core\Role\Role; diff --git a/src/Symfony/Component/Security/Tests/Core/Role/SwitchUserRoleTest.php b/src/Symfony/Component/Security/Core/Tests/Role/SwitchUserRoleTest.php similarity index 93% rename from src/Symfony/Component/Security/Tests/Core/Role/SwitchUserRoleTest.php rename to src/Symfony/Component/Security/Core/Tests/Role/SwitchUserRoleTest.php index bf9b173e3b..f0ce468637 100644 --- a/src/Symfony/Component/Security/Tests/Core/Role/SwitchUserRoleTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Role/SwitchUserRoleTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Role; +namespace Symfony\Component\Security\Core\Tests\Role; use Symfony\Component\Security\Core\Role\SwitchUserRole; diff --git a/src/Symfony/Component/Security/Tests/Core/SecurityContextTest.php b/src/Symfony/Component/Security/Core/Tests/SecurityContextTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/SecurityContextTest.php rename to src/Symfony/Component/Security/Core/Tests/SecurityContextTest.php index 124ebf9f44..dd0e2e3a88 100644 --- a/src/Symfony/Component/Security/Tests/Core/SecurityContextTest.php +++ b/src/Symfony/Component/Security/Core/Tests/SecurityContextTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core; +namespace Symfony\Component\Security\Core\Tests; use Symfony\Component\Security\Core\SecurityContext; diff --git a/src/Symfony/Component/Security/Tests/Core/User/AccountCheckerTest.php b/src/Symfony/Component/Security/Core/Tests/User/AccountCheckerTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/User/AccountCheckerTest.php rename to src/Symfony/Component/Security/Core/Tests/User/AccountCheckerTest.php index f28067f1dd..8d5e203c0c 100644 --- a/src/Symfony/Component/Security/Tests/Core/User/AccountCheckerTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/AccountCheckerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\User; +namespace Symfony\Component\Security\Core\Tests\User; use Symfony\Component\Security\Core\User\UserChecker; diff --git a/src/Symfony/Component/Security/Tests/Core/User/ChainUserProviderTest.php b/src/Symfony/Component/Security/Core/Tests/User/ChainUserProviderTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Core/User/ChainUserProviderTest.php rename to src/Symfony/Component/Security/Core/Tests/User/ChainUserProviderTest.php index 0fddcd668b..57873cfaac 100644 --- a/src/Symfony/Component/Security/Tests/Core/User/ChainUserProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/ChainUserProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\User; +namespace Symfony\Component\Security\Core\Tests\User; use Symfony\Component\Security\Core\Exception\UnsupportedUserException; diff --git a/src/Symfony/Component/Security/Tests/Core/User/InMemoryProviderTest.php b/src/Symfony/Component/Security/Core/Tests/User/InMemoryProviderTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Core/User/InMemoryProviderTest.php rename to src/Symfony/Component/Security/Core/Tests/User/InMemoryProviderTest.php index 5197a29702..5d6cadc877 100644 --- a/src/Symfony/Component/Security/Tests/Core/User/InMemoryProviderTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/InMemoryProviderTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\User; +namespace Symfony\Component\Security\Core\Tests\User; use Symfony\Component\Security\Core\User\InMemoryUserProvider; use Symfony\Component\Security\Core\User\User; diff --git a/src/Symfony/Component/Security/Tests/Core/User/UserTest.php b/src/Symfony/Component/Security/Core/Tests/User/UserTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/User/UserTest.php rename to src/Symfony/Component/Security/Core/Tests/User/UserTest.php index 26e562f1fd..7d4cf95221 100644 --- a/src/Symfony/Component/Security/Tests/Core/User/UserTest.php +++ b/src/Symfony/Component/Security/Core/Tests/User/UserTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\User; +namespace Symfony\Component\Security\Core\Tests\User; use Symfony\Component\Security\Core\User\User; diff --git a/src/Symfony/Component/Security/Tests/Core/Util/ClassUtilsTest.php b/src/Symfony/Component/Security/Core/Tests/Util/ClassUtilsTest.php similarity index 77% rename from src/Symfony/Component/Security/Tests/Core/Util/ClassUtilsTest.php rename to src/Symfony/Component/Security/Core/Tests/Util/ClassUtilsTest.php index 8359236f65..e8f0143eb7 100644 --- a/src/Symfony/Component/Security/Tests/Core/Util/ClassUtilsTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Util/ClassUtilsTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Util +namespace Symfony\Component\Security\Core\Tests\Util { use Symfony\Component\Security\Core\Util\ClassUtils; @@ -22,9 +22,9 @@ namespace Symfony\Component\Security\Tests\Core\Util array('Symfony\Component\Security\Core\Util\ClassUtils', 'Symfony\Component\Security\Core\Util\ClassUtils'), array('MyProject\Proxies\__CG__\stdClass', 'stdClass'), array('MyProject\Proxies\__CG__\OtherProject\Proxies\__CG__\stdClass', 'stdClass'), - array('MyProject\Proxies\__CG__\Symfony\Component\Security\Tests\Core\Util\ChildObject', 'Symfony\Component\Security\Tests\Core\Util\ChildObject'), - array(new TestObject(), 'Symfony\Component\Security\Tests\Core\Util\TestObject'), - array(new \Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Core\Util\TestObject(), 'Symfony\Component\Security\Tests\Core\Util\TestObject'), + array('MyProject\Proxies\__CG__\Symfony\Component\Security\Core\Tests\Util\ChildObject', 'Symfony\Component\Security\Core\Tests\Util\ChildObject'), + array(new TestObject(), 'Symfony\Component\Security\Core\Tests\Util\TestObject'), + array(new \Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Core\Tests\Util\TestObject(), 'Symfony\Component\Security\Core\Tests\Util\TestObject'), ); } @@ -42,9 +42,9 @@ namespace Symfony\Component\Security\Tests\Core\Util } } -namespace Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Tests\Core\Util +namespace Acme\DemoBundle\Proxy\__CG__\Symfony\Component\Security\Core\Tests\Util { - class TestObject extends \Symfony\Component\Security\Tests\Core\Util\TestObject + class TestObject extends \Symfony\Component\Security\Core\Tests\Util\TestObject { } } diff --git a/src/Symfony/Component/Security/Tests/Core/Util/SecureRandomTest.php b/src/Symfony/Component/Security/Core/Tests/Util/SecureRandomTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Core/Util/SecureRandomTest.php rename to src/Symfony/Component/Security/Core/Tests/Util/SecureRandomTest.php index c7ed016673..91d0489e86 100644 --- a/src/Symfony/Component/Security/Tests/Core/Util/SecureRandomTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Util/SecureRandomTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Util; +namespace Symfony\Component\Security\Core\Tests\Util; use Symfony\Component\Security\Core\Util\SecureRandom; diff --git a/src/Symfony/Component/Security/Tests/Core/Util/StringUtilsTest.php b/src/Symfony/Component/Security/Core/Tests/Util/StringUtilsTest.php similarity index 90% rename from src/Symfony/Component/Security/Tests/Core/Util/StringUtilsTest.php rename to src/Symfony/Component/Security/Core/Tests/Util/StringUtilsTest.php index aac4139254..89da98de66 100644 --- a/src/Symfony/Component/Security/Tests/Core/Util/StringUtilsTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Util/StringUtilsTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Util; +namespace Symfony\Component\Security\Core\Tests\Util; use Symfony\Component\Security\Core\Util\StringUtils; diff --git a/src/Symfony/Component/Security/Tests/Core/Validator/Constraints/UserPasswordValidatorTest.php b/src/Symfony/Component/Security/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Core/Validator/Constraints/UserPasswordValidatorTest.php rename to src/Symfony/Component/Security/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php index 93bff3c8a8..53eeb5fed7 100644 --- a/src/Symfony/Component/Security/Tests/Core/Validator/Constraints/UserPasswordValidatorTest.php +++ b/src/Symfony/Component/Security/Core/Tests/Validator/Constraints/UserPasswordValidatorTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Core\Validator\Constraints; +namespace Symfony\Component\Security\Core\Tests\Validator\Constraints; use Symfony\Component\Security\Core\Validator\Constraints\UserPassword; use Symfony\Component\Security\Core\Validator\Constraints\UserPasswordValidator; diff --git a/src/Symfony/Component/Security/Core/composer.json b/src/Symfony/Component/Security/Core/composer.json new file mode 100644 index 0000000000..91851a822f --- /dev/null +++ b/src/Symfony/Component/Security/Core/composer.json @@ -0,0 +1,42 @@ +{ + "name": "symfony/security-core", + "type": "library", + "description": "Symfony Security Component - Core Library", + "keywords": [], + "homepage": "http://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + } + ], + "require": { + "php": ">=5.3.3", + "symfony/event-dispatcher": "~2.1", + "symfony/http-foundation": "~2.4" + }, + "require-dev": { + "symfony/validator": "~2.2", + "psr/log": "~1.0", + "ircmaxell/password-compat": "1.0.*" + }, + "suggest": { + "symfony/validator": "", + "ircmaxell/password-compat": "" + }, + "autoload": { + "psr-0": { "Symfony\\Component\\Security\\Core\\": "" } + }, + "target-dir": "Symfony/Component/Security/Core", + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + } +} diff --git a/src/Symfony/Component/Security/Core/phpunit.xml.dist b/src/Symfony/Component/Security/Core/phpunit.xml.dist new file mode 100644 index 0000000000..f085b7255b --- /dev/null +++ b/src/Symfony/Component/Security/Core/phpunit.xml.dist @@ -0,0 +1,29 @@ + + + + + + ./Tests/ + + + + + + ./ + + ./vendor + ./Tests + + + + diff --git a/src/Symfony/Component/Security/Http/.gitignore b/src/Symfony/Component/Security/Http/.gitignore new file mode 100644 index 0000000000..c49a5d8df5 --- /dev/null +++ b/src/Symfony/Component/Security/Http/.gitignore @@ -0,0 +1,3 @@ +vendor/ +composer.lock +phpunit.xml diff --git a/src/Symfony/Component/Security/Http/LICENSE b/src/Symfony/Component/Security/Http/LICENSE new file mode 100644 index 0000000000..88a57f8d8d --- /dev/null +++ b/src/Symfony/Component/Security/Http/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2004-2013 Fabien Potencier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/src/Symfony/Component/Security/Http/README.md b/src/Symfony/Component/Security/Http/README.md new file mode 100644 index 0000000000..1bca91ea72 --- /dev/null +++ b/src/Symfony/Component/Security/Http/README.md @@ -0,0 +1,23 @@ +Security Component - HTTP Integration +===================================== + +Security provides an infrastructure for sophisticated authorization systems, +which makes it possible to easily separate the actual authorization logic from +so called user providers that hold the users credentials. It is inspired by +the Java Spring framework. + +Resources +--------- + +Documentation: + +http://symfony.com/doc/2.4/book/security.html + +Resources +--------- + +You can run the unit tests with the following command: + + $ cd path/to/Symfony/Component/Security/Http/ + $ composer.phar install --dev + $ phpunit diff --git a/src/Symfony/Component/Security/Tests/Http/AccessMapTest.php b/src/Symfony/Component/Security/Http/Tests/AccessMapTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Http/AccessMapTest.php rename to src/Symfony/Component/Security/Http/Tests/AccessMapTest.php index c2d9b7f87c..d8ab7aae90 100644 --- a/src/Symfony/Component/Security/Tests/Http/AccessMapTest.php +++ b/src/Symfony/Component/Security/Http/Tests/AccessMapTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http; +namespace Symfony\Component\Security\Http\Tests; use Symfony\Component\Security\Http\AccessMap; diff --git a/src/Symfony/Component/Security/Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php rename to src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php index b741ced6bf..097c92652f 100644 --- a/src/Symfony/Component/Security/Tests/Http/Authentication/DefaultAuthenticationFailureHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationFailureHandlerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http; +namespace Symfony\Component\Security\Http\Tests; use Symfony\Component\Security\Http\Authentication\DefaultAuthenticationFailureHandler; use Symfony\Component\Security\Core\SecurityContextInterface; diff --git a/src/Symfony/Component/Security/Tests/Http/Authentication/DefaultAuthenticationSuccessHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Authentication/DefaultAuthenticationSuccessHandlerTest.php rename to src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php index 3ba6a1718f..fa0ebd4a8c 100644 --- a/src/Symfony/Component/Security/Tests/Http/Authentication/DefaultAuthenticationSuccessHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Authentication/DefaultAuthenticationSuccessHandlerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http; +namespace Symfony\Component\Security\Http\Tests; use Symfony\Component\Security\Http\Authentication\DefaultAuthenticationSuccessHandler; diff --git a/src/Symfony/Component/Security/Tests/Http/EntryPoint/BasicAuthenticationEntryPointTest.php b/src/Symfony/Component/Security/Http/Tests/EntryPoint/BasicAuthenticationEntryPointTest.php similarity index 95% rename from src/Symfony/Component/Security/Tests/Http/EntryPoint/BasicAuthenticationEntryPointTest.php rename to src/Symfony/Component/Security/Http/Tests/EntryPoint/BasicAuthenticationEntryPointTest.php index 564078956b..ca5922c8df 100644 --- a/src/Symfony/Component/Security/Tests/Http/EntryPoint/BasicAuthenticationEntryPointTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EntryPoint/BasicAuthenticationEntryPointTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\EntryPoint; +namespace Symfony\Component\Security\Http\Tests\EntryPoint; use Symfony\Component\Security\Http\EntryPoint\BasicAuthenticationEntryPoint; use Symfony\Component\Security\Core\Exception\AuthenticationException; diff --git a/src/Symfony/Component/Security/Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php b/src/Symfony/Component/Security/Http/Tests/EntryPoint/DigestAuthenticationEntryPointTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php rename to src/Symfony/Component/Security/Http/Tests/EntryPoint/DigestAuthenticationEntryPointTest.php index 5c6eccc842..181e340e60 100644 --- a/src/Symfony/Component/Security/Tests/Http/EntryPoint/DigestAuthenticationEntryPointTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EntryPoint/DigestAuthenticationEntryPointTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\EntryPoint; +namespace Symfony\Component\Security\Http\Tests\EntryPoint; use Symfony\Component\Security\Http\EntryPoint\DigestAuthenticationEntryPoint; use Symfony\Component\Security\Core\Exception\AuthenticationException; diff --git a/src/Symfony/Component/Security/Tests/Http/EntryPoint/FormAuthenticationEntryPointTest.php b/src/Symfony/Component/Security/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Http/EntryPoint/FormAuthenticationEntryPointTest.php rename to src/Symfony/Component/Security/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php index 097912dd87..3acb9c2616 100644 --- a/src/Symfony/Component/Security/Tests/Http/EntryPoint/FormAuthenticationEntryPointTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EntryPoint/FormAuthenticationEntryPointTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\EntryPoint; +namespace Symfony\Component\Security\Http\Tests\EntryPoint; use Symfony\Component\Security\Http\EntryPoint\FormAuthenticationEntryPoint; use Symfony\Component\HttpKernel\HttpKernelInterface; diff --git a/src/Symfony/Component/Security/Tests/Http/EntryPoint/RetryAuthenticationEntryPointTest.php b/src/Symfony/Component/Security/Http/Tests/EntryPoint/RetryAuthenticationEntryPointTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Http/EntryPoint/RetryAuthenticationEntryPointTest.php rename to src/Symfony/Component/Security/Http/Tests/EntryPoint/RetryAuthenticationEntryPointTest.php index 1d918ac02e..f4e5425933 100644 --- a/src/Symfony/Component/Security/Tests/Http/EntryPoint/RetryAuthenticationEntryPointTest.php +++ b/src/Symfony/Component/Security/Http/Tests/EntryPoint/RetryAuthenticationEntryPointTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\EntryPoint; +namespace Symfony\Component\Security\Http\Tests\EntryPoint; use Symfony\Component\Security\Http\EntryPoint\RetryAuthenticationEntryPoint; use Symfony\Component\HttpFoundation\Request; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/AbstractPreAuthenticatedListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/AbstractPreAuthenticatedListenerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Firewall/AbstractPreAuthenticatedListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/AbstractPreAuthenticatedListenerTest.php index e57514b37a..57a91cf67c 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/AbstractPreAuthenticatedListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/AbstractPreAuthenticatedListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/AccessListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Firewall/AccessListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php index 961c792d36..f9b0f3c4a1 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/AccessListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/AccessListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\Security\Http\Firewall\AccessListener; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/AnonymousAuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Http/Firewall/AnonymousAuthenticationListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php index 0fd43ec6b2..1fb7350c6c 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/AnonymousAuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/AnonymousAuthenticationListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\Security\Http\Firewall\AnonymousAuthenticationListener; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/BasicAuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/BasicAuthenticationListenerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Firewall/BasicAuthenticationListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/BasicAuthenticationListenerTest.php index b5235981f1..eb51f5f38d 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/BasicAuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/BasicAuthenticationListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Core\Authentication\Token\PreAuthenticatedToken; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/ChannelListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Firewall/ChannelListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php index 2005a2b138..2b27e7558c 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/ChannelListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/ChannelListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\Security\Http\Firewall\ChannelListener; use Symfony\Component\HttpKernel\Event\GetResponseEvent; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/ContextListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Firewall/ContextListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php index 68af9a7e1b..c153fd5d88 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/ContextListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/ContextListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/DigestDataTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/DigestDataTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Firewall/DigestDataTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/DigestDataTest.php index 8b63d9c953..86a5327c50 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/DigestDataTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/DigestDataTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\Security\Http\Firewall\DigestData; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/LogoutListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Firewall/LogoutListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php index 2c26678ef9..719b6849cf 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/LogoutListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/LogoutListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/RememberMeListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Http/Firewall/RememberMeListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php index 922f99bd81..950669282c 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/RememberMeListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\Security\Core\Exception\AuthenticationException; use Symfony\Component\Security\Http\Firewall\RememberMeListener; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/SwitchUserListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/Firewall/SwitchUserListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php index feb10b8270..f331f0ede5 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/SwitchUserListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/SwitchUserListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\Security\Http\Firewall\SwitchUserListener; diff --git a/src/Symfony/Component/Security/Tests/Http/Firewall/X509AuthenticationListenerTest.php b/src/Symfony/Component/Security/Http/Tests/Firewall/X509AuthenticationListenerTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Http/Firewall/X509AuthenticationListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/Firewall/X509AuthenticationListenerTest.php index 77e5e6a52c..17245912e6 100644 --- a/src/Symfony/Component/Security/Tests/Http/Firewall/X509AuthenticationListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Firewall/X509AuthenticationListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Firewall; +namespace Symfony\Component\Security\Http\Tests\Firewall; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Security\Http\Firewall\X509AuthenticationListener; diff --git a/src/Symfony/Component/Security/Tests/Http/FirewallMapTest.php b/src/Symfony/Component/Security/Http/Tests/FirewallMapTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Http/FirewallMapTest.php rename to src/Symfony/Component/Security/Http/Tests/FirewallMapTest.php index 5d3a72af1c..85a57ab82c 100644 --- a/src/Symfony/Component/Security/Tests/Http/FirewallMapTest.php +++ b/src/Symfony/Component/Security/Http/Tests/FirewallMapTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http; +namespace Symfony\Component\Security\Http\Tests; use Symfony\Component\Security\Http\FirewallMap; use Symfony\Component\HttpFoundation\Request; diff --git a/src/Symfony/Component/Security/Tests/Http/FirewallTest.php b/src/Symfony/Component/Security/Http/Tests/FirewallTest.php similarity index 98% rename from src/Symfony/Component/Security/Tests/Http/FirewallTest.php rename to src/Symfony/Component/Security/Http/Tests/FirewallTest.php index 1ea7e57424..67f4f150fd 100644 --- a/src/Symfony/Component/Security/Tests/Http/FirewallTest.php +++ b/src/Symfony/Component/Security/Http/Tests/FirewallTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http; +namespace Symfony\Component\Security\Http\Tests; use Symfony\Component\Security\Http\Firewall; use Symfony\Component\HttpKernel\Event\GetResponseEvent; diff --git a/src/Symfony/Component/Security/Tests/Http/HttpUtilsTest.php b/src/Symfony/Component/Security/Http/Tests/HttpUtilsTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/HttpUtilsTest.php rename to src/Symfony/Component/Security/Http/Tests/HttpUtilsTest.php index 07a3ee9924..90380eae9a 100644 --- a/src/Symfony/Component/Security/Tests/Http/HttpUtilsTest.php +++ b/src/Symfony/Component/Security/Http/Tests/HttpUtilsTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http; +namespace Symfony\Component\Security\Http\Tests; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\Routing\Exception\MethodNotAllowedException; diff --git a/src/Symfony/Component/Security/Tests/Http/Logout/CookieClearingLogoutHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Logout/CookieClearingLogoutHandlerTest.php similarity index 96% rename from src/Symfony/Component/Security/Tests/Http/Logout/CookieClearingLogoutHandlerTest.php rename to src/Symfony/Component/Security/Http/Tests/Logout/CookieClearingLogoutHandlerTest.php index c443d8d0db..84745040c8 100644 --- a/src/Symfony/Component/Security/Tests/Http/Logout/CookieClearingLogoutHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Logout/CookieClearingLogoutHandlerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Logout; +namespace Symfony\Component\Security\Http\Tests\Logout; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\ResponseHeaderBag; diff --git a/src/Symfony/Component/Security/Tests/Http/Logout/DefaultLogoutSuccessHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php similarity index 95% rename from src/Symfony/Component/Security/Tests/Http/Logout/DefaultLogoutSuccessHandlerTest.php rename to src/Symfony/Component/Security/Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php index ed65d6b1c9..76a8cd99c3 100644 --- a/src/Symfony/Component/Security/Tests/Http/Logout/DefaultLogoutSuccessHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Logout/DefaultLogoutSuccessHandlerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Logout; +namespace Symfony\Component\Security\Http\Tests\Logout; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Logout\DefaultLogoutSuccessHandler; diff --git a/src/Symfony/Component/Security/Tests/Http/Logout/SessionLogoutHandlerTest.php b/src/Symfony/Component/Security/Http/Tests/Logout/SessionLogoutHandlerTest.php similarity index 95% rename from src/Symfony/Component/Security/Tests/Http/Logout/SessionLogoutHandlerTest.php rename to src/Symfony/Component/Security/Http/Tests/Logout/SessionLogoutHandlerTest.php index f89a423e59..c3429951fc 100644 --- a/src/Symfony/Component/Security/Tests/Http/Logout/SessionLogoutHandlerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Logout/SessionLogoutHandlerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Logout; +namespace Symfony\Component\Security\Http\Tests\Logout; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Http\Logout\SessionLogoutHandler; diff --git a/src/Symfony/Component/Security/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php b/src/Symfony/Component/Security/Http/Tests/RememberMe/AbstractRememberMeServicesTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php rename to src/Symfony/Component/Security/Http/Tests/RememberMe/AbstractRememberMeServicesTest.php index 20ac1951ff..3c4b10d6c5 100644 --- a/src/Symfony/Component/Security/Tests/Http/RememberMe/AbstractRememberMeServicesTest.php +++ b/src/Symfony/Component/Security/Http/Tests/RememberMe/AbstractRememberMeServicesTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\RememberMe; +namespace Symfony\Component\Security\Http\Tests\RememberMe; use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface; use Symfony\Component\HttpFoundation\Request; diff --git a/src/Symfony/Component/Security/Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php b/src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php rename to src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php index 8978725597..91188a470f 100644 --- a/src/Symfony/Component/Security/Tests/Http/RememberMe/PersistentTokenBasedRememberMeServicesTest.php +++ b/src/Symfony/Component/Security/Http/Tests/RememberMe/PersistentTokenBasedRememberMeServicesTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\RememberMe; +namespace Symfony\Component\Security\Http\Tests\RememberMe; use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface; diff --git a/src/Symfony/Component/Security/Tests/Http/RememberMe/ResponseListenerTest.php b/src/Symfony/Component/Security/Http/Tests/RememberMe/ResponseListenerTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Http/RememberMe/ResponseListenerTest.php rename to src/Symfony/Component/Security/Http/Tests/RememberMe/ResponseListenerTest.php index 887ec69104..5d69a65b1f 100644 --- a/src/Symfony/Component/Security/Tests/Http/RememberMe/ResponseListenerTest.php +++ b/src/Symfony/Component/Security/Http/Tests/RememberMe/ResponseListenerTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\RememberMe; +namespace Symfony\Component\Security\Http\Tests\RememberMe; use Symfony\Component\Security\Http\RememberMe\ResponseListener; use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface; diff --git a/src/Symfony/Component/Security/Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php b/src/Symfony/Component/Security/Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php similarity index 99% rename from src/Symfony/Component/Security/Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php rename to src/Symfony/Component/Security/Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php index 78560384d4..cdd30319d1 100644 --- a/src/Symfony/Component/Security/Tests/Http/RememberMe/TokenBasedRememberMeServicesTest.php +++ b/src/Symfony/Component/Security/Http/Tests/RememberMe/TokenBasedRememberMeServicesTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\RememberMe; +namespace Symfony\Component\Security\Http\Tests\RememberMe; use Symfony\Component\Security\Http\RememberMe\RememberMeServicesInterface; diff --git a/src/Symfony/Component/Security/Tests/Http/Session/SessionAuthenticationStrategyTest.php b/src/Symfony/Component/Security/Http/Tests/Session/SessionAuthenticationStrategyTest.php similarity index 97% rename from src/Symfony/Component/Security/Tests/Http/Session/SessionAuthenticationStrategyTest.php rename to src/Symfony/Component/Security/Http/Tests/Session/SessionAuthenticationStrategyTest.php index 6918503c1d..7be9054e54 100644 --- a/src/Symfony/Component/Security/Tests/Http/Session/SessionAuthenticationStrategyTest.php +++ b/src/Symfony/Component/Security/Http/Tests/Session/SessionAuthenticationStrategyTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Symfony\Component\Security\Tests\Http\Session; +namespace Symfony\Component\Security\Http\Tests\Session; use Symfony\Component\Security\Http\Session\SessionAuthenticationStrategy; diff --git a/src/Symfony/Component/Security/Http/composer.json b/src/Symfony/Component/Security/Http/composer.json new file mode 100644 index 0000000000..6b610a09e4 --- /dev/null +++ b/src/Symfony/Component/Security/Http/composer.json @@ -0,0 +1,44 @@ +{ + "name": "symfony/security-http", + "type": "library", + "description": "Symfony Security Component - HTTP Integration", + "keywords": [], + "homepage": "http://symfony.com", + "license": "MIT", + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "http://symfony.com/contributors" + } + ], + "require": { + "php": ">=5.3.3", + "symfony/security-core": "~2.4", + "symfony/event-dispatcher": "~2.1", + "symfony/http-foundation": "~2.4", + "symfony/http-kernel": "~2.4" + }, + "require-dev": { + "symfony/form": "~2.0", + "symfony/routing": "~2.2", + "psr/log": "~1.0" + }, + "suggest": { + "symfony/form": "", + "symfony/routing": "" + }, + "autoload": { + "psr-0": { "Symfony\\Component\\Security\\Http\\": "" } + }, + "target-dir": "Symfony/Component/Security/Http", + "minimum-stability": "dev", + "extra": { + "branch-alias": { + "dev-master": "2.4-dev" + } + } +} diff --git a/src/Symfony/Component/Security/Http/phpunit.xml.dist b/src/Symfony/Component/Security/Http/phpunit.xml.dist new file mode 100644 index 0000000000..a735efdb19 --- /dev/null +++ b/src/Symfony/Component/Security/Http/phpunit.xml.dist @@ -0,0 +1,29 @@ + + + + + + ./Tests/ + + + + + + ./ + + ./vendor + ./Tests + + + + diff --git a/src/Symfony/Component/Security/composer.json b/src/Symfony/Component/Security/composer.json index 9c01ef065d..c66e967fbf 100644 --- a/src/Symfony/Component/Security/composer.json +++ b/src/Symfony/Component/Security/composer.json @@ -21,6 +21,11 @@ "symfony/http-foundation": "~2.1", "symfony/http-kernel": "~2.4" }, + "replace": { + "symfony/security-acl": "self.version", + "symfony/security-core": "self.version", + "symfony/security-http": "self.version" + }, "require-dev": { "symfony/form": "~2.0", "symfony/routing": "~2.2", diff --git a/src/Symfony/Component/Security/phpunit.xml.dist b/src/Symfony/Component/Security/phpunit.xml.dist index f45a44ec5a..65cc186861 100644 --- a/src/Symfony/Component/Security/phpunit.xml.dist +++ b/src/Symfony/Component/Security/phpunit.xml.dist @@ -13,7 +13,9 @@ > - ./Tests/ + ./Acl/Tests/ + ./Core/Tests/ + ./Http/Tests/ @@ -22,7 +24,9 @@ ./ ./vendor - ./Tests + ./Acl/Tests + ./Core/Tests + ./Http/Tests From 62bda7906be11fe80c7293f2110a07cabf5ac9e7 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 18 Sep 2013 09:24:07 +0200 Subject: [PATCH 2/4] [Security] copied the Resources/ directory to Core/Resources/ --- UPGRADE-3.0.md | 4 ++ .../FrameworkExtension.php | 2 +- .../FrameworkExtensionTest.php | 6 +- .../Resources/translations/security.ar.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.ca.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.cs.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.da.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.de.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.el.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.en.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.es.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.fa.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.fr.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.gl.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.hu.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.it.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.lb.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.nl.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.no.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.pl.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.pt_BR.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.pt_PT.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.ro.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.ru.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.sk.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.sl.xlf | 71 +++++++++++++++++++ .../translations/security.sr_Cyrl.xlf | 71 +++++++++++++++++++ .../translations/security.sr_Latn.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.sv.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.tr.xlf | 71 +++++++++++++++++++ .../Resources/translations/security.ua.xlf | 71 +++++++++++++++++++ 31 files changed, 1996 insertions(+), 4 deletions(-) create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.ar.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.ca.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.cs.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.da.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.de.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.el.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.en.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.es.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.fa.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.fr.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.gl.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.hu.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.it.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.lb.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.nl.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.no.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.pl.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.pt_BR.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.pt_PT.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.ro.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.ru.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.sk.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.sl.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.sr_Cyrl.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.sr_Latn.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.sv.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.tr.xlf create mode 100644 src/Symfony/Component/Security/Core/Resources/translations/security.ua.xlf diff --git a/UPGRADE-3.0.md b/UPGRADE-3.0.md index a30a318599..880870a1cf 100644 --- a/UPGRADE-3.0.md +++ b/UPGRADE-3.0.md @@ -328,6 +328,10 @@ UPGRADE FROM 2.x to 3.0 $route->setSchemes('https'); ``` +### Security + + * The `Resources/` directory was moved to `Core/Resources/` + ### Translator * The `Translator::setFallbackLocale()` method has been removed in favor of diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php index fb85ecb869..fae8714118 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php @@ -566,7 +566,7 @@ class FrameworkExtension extends Extension if (class_exists('Symfony\Component\Security\Core\Exception\AuthenticationException')) { $r = new \ReflectionClass('Symfony\Component\Security\Core\Exception\AuthenticationException'); - $dirs[] = dirname($r->getFilename()).'/../../Resources/translations'; + $dirs[] = dirname($r->getFilename()).'/../Resources/translations'; } $overridePath = $container->getParameter('kernel.root_dir').'/Resources/%s/translations'; foreach ($container->getParameter('kernel.bundles') as $bundle => $class) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php index c302c4c697..3aef0dc6a0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php @@ -184,19 +184,19 @@ abstract class FrameworkExtensionTest extends TestCase $files = array_map(function($resource) { return realpath($resource[1]); }, $resources); $ref = new \ReflectionClass('Symfony\Component\Validator\Validator'); $this->assertContains( - strtr(dirname($ref->getFileName()) . '/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR), + strtr(dirname($ref->getFileName()).'/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR), $files, '->registerTranslatorConfiguration() finds Validator translation resources' ); $ref = new \ReflectionClass('Symfony\Component\Form\Form'); $this->assertContains( - strtr(dirname($ref->getFileName()) . '/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR), + strtr(dirname($ref->getFileName()).'/Resources/translations/validators.en.xlf', '/', DIRECTORY_SEPARATOR), $files, '->registerTranslatorConfiguration() finds Form translation resources' ); $ref = new \ReflectionClass('Symfony\Component\Security\Core\SecurityContext'); $this->assertContains( - strtr(dirname(dirname($ref->getFileName())) . '/Resources/translations/security.en.xlf', '/', DIRECTORY_SEPARATOR), + strtr(dirname($ref->getFileName()).'/Resources/translations/security.en.xlf', '/', DIRECTORY_SEPARATOR), $files, '->registerTranslatorConfiguration() finds Security translation resources' ); diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.ar.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.ar.xlf new file mode 100644 index 0000000000..fd18ee6ad9 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.ar.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + حدث خطأ اثناء الدخول. + + + Authentication credentials could not be found. + لم استطع العثور على معلومات الدخول. + + + Authentication request could not be processed due to a system problem. + لم يكتمل طلب الدخول نتيجه عطل فى النظام. + + + Invalid credentials. + معلومات الدخول خاطئة. + + + Cookie has already been used by someone else. + ملفات تعريف الارتباط(cookies) تم استخدامها من قبل شخص اخر. + + + Not privileged to request the resource. + ليست لديك الصلاحيات الكافية لهذا الطلب. + + + Invalid CSRF token. + رمز الموقع غير صحيح. + + + Digest nonce has expired. + انتهت صلاحية(digest nonce). + + + No authentication provider found to support the authentication token. + لا يوجد معرف للدخول يدعم الرمز المستخدم للدخول. + + + No session available, it either timed out or cookies are not enabled. + لا يوجد صلة بينك و بين الموقع اما انها انتهت او ان متصفحك لا يدعم خاصية ملفات تعريف الارتباط (cookies). + + + No token could be found. + لم استطع العثور على الرمز. + + + Username could not be found. + لم استطع العثور على اسم الدخول. + + + Account has expired. + انتهت صلاحية الحساب. + + + Credentials have expired. + انتهت صلاحية معلومات الدخول. + + + Account is disabled. + الحساب موقوف. + + + Account is locked. + الحساب مغلق. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.ca.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.ca.xlf new file mode 100644 index 0000000000..7ece2603ae --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.ca.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Ha succeït un error d'autenticació. + + + Authentication credentials could not be found. + No s'han trobat les credencials d'autenticació. + + + Authentication request could not be processed due to a system problem. + La solicitud d'autenticació no s'ha pogut processar per un problema del sistema. + + + Invalid credentials. + Credencials no vàlides. + + + Cookie has already been used by someone else. + La cookie ja ha estat utilitzada per una altra persona. + + + Not privileged to request the resource. + No té privilegis per solicitar el recurs. + + + Invalid CSRF token. + Token CSRF no vàlid. + + + Digest nonce has expired. + El vector d'inicialització (digest nonce) ha expirat. + + + No authentication provider found to support the authentication token. + No s'ha trobat un proveïdor d'autenticació que suporti el token d'autenticació. + + + No session available, it either timed out or cookies are not enabled. + No hi ha sessió disponible, ha expirat o les cookies no estan habilitades. + + + No token could be found. + No s'ha trobat cap token. + + + Username could not be found. + No s'ha trobat el nom d'usuari. + + + Account has expired. + El compte ha expirat. + + + Credentials have expired. + Les credencials han expirat. + + + Account is disabled. + El compte està deshabilitat. + + + Account is locked. + El compte està bloquejat. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.cs.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.cs.xlf new file mode 100644 index 0000000000..bd146c6804 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.cs.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Při ověřování došlo k chybě. + + + Authentication credentials could not be found. + Ověřovací údaje nebyly nalezeny. + + + Authentication request could not be processed due to a system problem. + Požadavek na ověření nemohl být zpracován kvůli systémové chybě. + + + Invalid credentials. + Neplatné přihlašovací údaje. + + + Cookie has already been used by someone else. + Cookie již bylo použité někým jiným. + + + Not privileged to request the resource. + Nemáte oprávnění přistupovat k prostředku. + + + Invalid CSRF token. + Neplatný CSRF token. + + + Digest nonce has expired. + Platnost inicializačního vektoru (digest nonce) vypršela. + + + No authentication provider found to support the authentication token. + Poskytovatel pro ověřovací token nebyl nalezen. + + + No session available, it either timed out or cookies are not enabled. + Session není k dispozici, vypršela její platnost, nebo jsou zakázané cookies. + + + No token could be found. + Token nebyl nalezen. + + + Username could not be found. + Přihlašovací jméno nebylo nalezeno. + + + Account has expired. + Platnost účtu vypršela. + + + Credentials have expired. + Platnost přihlašovacích údajů vypršela. + + + Account is disabled. + Účet je zakázaný. + + + Account is locked. + Účet je zablokovaný. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.da.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.da.xlf new file mode 100644 index 0000000000..9c7b8866ef --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.da.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + En fejl indtraf ved godkendelse. + + + Authentication credentials could not be found. + Loginoplysninger kan findes. + + + Authentication request could not be processed due to a system problem. + Godkendelsesanmodning kan ikke behandles på grund af et systemfejl. + + + Invalid credentials. + Ugyldige loginoplysninger. + + + Cookie has already been used by someone else. + Cookie er allerede brugt af en anden. + + + Not privileged to request the resource. + Ingen tilladselese at anvende kilden. + + + Invalid CSRF token. + Ugyldigt CSRF token. + + + Digest nonce has expired. + Digest nonce er udløbet. + + + No authentication provider found to support the authentication token. + Ingen godkendelsesudbyder er fundet til understøttelsen af godkendelsestoken. + + + No session available, it either timed out or cookies are not enabled. + Ingen session tilgængelig, sessionen er enten udløbet eller cookies er ikke aktiveret. + + + No token could be found. + Ingen token kan findes. + + + Username could not be found. + Brugernavn kan ikke findes. + + + Account has expired. + Brugerkonto er udløbet. + + + Credentials have expired. + Loginoplysninger er udløbet. + + + Account is disabled. + Brugerkonto er deaktiveret. + + + Account is locked. + Brugerkonto er låst. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.de.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.de.xlf new file mode 100644 index 0000000000..e5946ed4aa --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.de.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Es ist ein Fehler bei der Authentifikation aufgetreten. + + + Authentication credentials could not be found. + Es konnten keine Zugangsdaten gefunden werden. + + + Authentication request could not be processed due to a system problem. + Die Authentifikation konnte wegen eines Systemproblems nicht bearbeitet werden. + + + Invalid credentials. + Fehlerhafte Zugangsdaten. + + + Cookie has already been used by someone else. + Cookie wurde bereits von jemand anderem verwendet. + + + Not privileged to request the resource. + Keine Rechte, um die Ressource anzufragen. + + + Invalid CSRF token. + Ungültiges CSRF-Token. + + + Digest nonce has expired. + Digest nonce ist abgelaufen. + + + No authentication provider found to support the authentication token. + Es wurde kein Authentifizierungs-Provider gefunden, der das Authentifizierungs-Token unterstützt. + + + No session available, it either timed out or cookies are not enabled. + Keine Session verfügbar, entweder ist diese abgelaufen oder Cookies sind nicht aktiviert. + + + No token could be found. + Es wurde kein Token gefunden. + + + Username could not be found. + Der Benutzername wurde nicht gefunden. + + + Account has expired. + Der Account ist abgelaufen. + + + Credentials have expired. + Die Zugangsdaten sind abgelaufen. + + + Account is disabled. + Der Account ist deaktiviert. + + + Account is locked. + Der Account ist gesperrt. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.el.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.el.xlf new file mode 100644 index 0000000000..07eabe7ed2 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.el.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Συνέβη ένα σφάλμα πιστοποίησης. + + + Authentication credentials could not be found. + Τα στοιχεία πιστοποίησης δε βρέθηκαν. + + + Authentication request could not be processed due to a system problem. + Το αίτημα πιστοποίησης δε μπορεί να επεξεργαστεί λόγω σφάλματος του συστήματος. + + + Invalid credentials. + Λανθασμένα στοιχεία σύνδεσης. + + + Cookie has already been used by someone else. + Το Cookie έχει ήδη χρησιμοποιηθεί από κάποιον άλλο. + + + Not privileged to request the resource. + Δεν είστε εξουσιοδοτημένος για πρόσβαση στο συγκεκριμένο περιεχόμενο. + + + Invalid CSRF token. + Μη έγκυρο CSRF token. + + + Digest nonce has expired. + Το digest nonce έχει λήξει. + + + No authentication provider found to support the authentication token. + Δε βρέθηκε κάποιος πάροχος πιστοποίησης που να υποστηρίζει το token πιστοποίησης. + + + No session available, it either timed out or cookies are not enabled. + Δεν υπάρχει ενεργή σύνοδος (session), είτε έχει λήξει ή τα cookies δεν είναι ενεργοποιημένα. + + + No token could be found. + Δεν ήταν δυνατόν να βρεθεί κάποιο token. + + + Username could not be found. + Το Username δε βρέθηκε. + + + Account has expired. + Ο λογαριασμός έχει λήξει. + + + Credentials have expired. + Τα στοιχεία σύνδεσης έχουν λήξει. + + + Account is disabled. + Ο λογαριασμός είναι απενεργοποιημένος. + + + Account is locked. + Ο λογαριασμός είναι κλειδωμένος. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.en.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.en.xlf new file mode 100644 index 0000000000..3640698ce9 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.en.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + An authentication exception occurred. + + + Authentication credentials could not be found. + Authentication credentials could not be found. + + + Authentication request could not be processed due to a system problem. + Authentication request could not be processed due to a system problem. + + + Invalid credentials. + Invalid credentials. + + + Cookie has already been used by someone else. + Cookie has already been used by someone else. + + + Not privileged to request the resource. + Not privileged to request the resource. + + + Invalid CSRF token. + Invalid CSRF token. + + + Digest nonce has expired. + Digest nonce has expired. + + + No authentication provider found to support the authentication token. + No authentication provider found to support the authentication token. + + + No session available, it either timed out or cookies are not enabled. + No session available, it either timed out or cookies are not enabled. + + + No token could be found. + No token could be found. + + + Username could not be found. + Username could not be found. + + + Account has expired. + Account has expired. + + + Credentials have expired. + Credentials have expired. + + + Account is disabled. + Account is disabled. + + + Account is locked. + Account is locked. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.es.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.es.xlf new file mode 100644 index 0000000000..00cefbb2da --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.es.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Ocurrió un error de autenticación. + + + Authentication credentials could not be found. + No se encontraron las credenciales de autenticación. + + + Authentication request could not be processed due to a system problem. + La solicitud de autenticación no se pudo procesar debido a un problema del sistema. + + + Invalid credentials. + Credenciales no válidas. + + + Cookie has already been used by someone else. + La cookie ya ha sido usada por otra persona. + + + Not privileged to request the resource. + No tiene privilegios para solicitar el recurso. + + + Invalid CSRF token. + Token CSRF no válido. + + + Digest nonce has expired. + El vector de inicialización (digest nonce) ha expirado. + + + No authentication provider found to support the authentication token. + No se encontró un proveedor de autenticación que soporte el token de autenticación. + + + No session available, it either timed out or cookies are not enabled. + No hay ninguna sesión disponible, ha expirado o las cookies no están habilitados. + + + No token could be found. + No se encontró ningún token. + + + Username could not be found. + No se encontró el nombre de usuario. + + + Account has expired. + La cuenta ha expirado. + + + Credentials have expired. + Las credenciales han expirado. + + + Account is disabled. + La cuenta está deshabilitada. + + + Account is locked. + La cuenta está bloqueada. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.fa.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.fa.xlf new file mode 100644 index 0000000000..0b76290780 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.fa.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + خطایی هنگام تعیین اعتبار اتفاق افتاد. + + + Authentication credentials could not be found. + شرایط تعیین اعتبار پیدا نشد. + + + Authentication request could not be processed due to a system problem. + درخواست تعیین اعتبار به دلیل مشکل سیستم قابل بررسی نیست. + + + Invalid credentials. + شرایط نامعتبر. + + + Cookie has already been used by someone else. + کوکی قبلا برای شخص دیگری استفاده شده است. + + + Not privileged to request the resource. + دسترسی لازم برای درخواست این منبع را ندارید. + + + Invalid CSRF token. + توکن CSRF معتبر نیست. + + + Digest nonce has expired. + Digest nonce منقضی شده است. + + + No authentication provider found to support the authentication token. + هیچ ارایه کننده تعیین اعتباری برای ساپورت توکن تعیین اعتبار پیدا نشد. + + + No session available, it either timed out or cookies are not enabled. + جلسه‌ای در دسترس نیست. این میتواند یا به دلیل پایان یافتن زمان باشد یا اینکه کوکی ها فعال نیستند. + + + No token could be found. + هیچ توکنی پیدا نشد. + + + Username could not be found. + نام ‌کاربری پیدا نشد. + + + Account has expired. + حساب کاربری منقضی شده است. + + + Credentials have expired. + پارامترهای تعیین اعتبار منقضی شده‌اند. + + + Account is disabled. + حساب کاربری غیرفعال است. + + + Account is locked. + حساب کاربری قفل شده است. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.fr.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.fr.xlf new file mode 100644 index 0000000000..f3965d3fb3 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.fr.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Une exception d'authentification s'est produite. + + + Authentication credentials could not be found. + Les droits d'authentification n'ont pas pu être trouvés. + + + Authentication request could not be processed due to a system problem. + La requête d'authentification n'a pas pu être executée à cause d'un problème système. + + + Invalid credentials. + Droits invalides. + + + Cookie has already been used by someone else. + Le cookie a déjà été utilisé par quelqu'un d'autre. + + + Not privileged to request the resource. + Pas de privilèges pour accéder à la ressource. + + + Invalid CSRF token. + Jeton CSRF invalide. + + + Digest nonce has expired. + Le digest nonce a expiré. + + + No authentication provider found to support the authentication token. + Aucun fournisseur d'authentification n'a été trouvé pour supporter le jeton d'authentification. + + + No session available, it either timed out or cookies are not enabled. + Pas de session disponible, celle-ci a expiré ou les cookies ne sont pas activés. + + + No token could be found. + Aucun jeton n'a pu être trouvé. + + + Username could not be found. + Le nom d'utilisateur ne peut pas être trouvé. + + + Account has expired. + Le compte a expiré. + + + Credentials have expired. + Les droits ont expirés. + + + Account is disabled. + Le compte est désactivé. + + + Account is locked. + Le compte est bloqué. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.gl.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.gl.xlf new file mode 100644 index 0000000000..ed6491f7ef --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.gl.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Ocorreu un erro de autenticación. + + + Authentication credentials could not be found. + Non se atoparon as credenciais de autenticación. + + + Authentication request could not be processed due to a system problem. + A solicitude de autenticación no puido ser procesada debido a un problema do sistema. + + + Invalid credentials. + Credenciais non válidas. + + + Cookie has already been used by someone else. + A cookie xa foi empregado por outro usuario. + + + Not privileged to request the resource. + Non ten privilexios para solicitar o recurso. + + + Invalid CSRF token. + Token CSRF non válido. + + + Digest nonce has expired. + O vector de inicialización (digest nonce) expirou. + + + No authentication provider found to support the authentication token. + Non se atopou un provedor de autenticación que soporte o token de autenticación. + + + No session available, it either timed out or cookies are not enabled. + Non hai ningunha sesión dispoñible, expirou ou as cookies non están habilitadas. + + + No token could be found. + Non se atopou ningún token. + + + Username could not be found. + Non se atopou o nome de usuario. + + + Account has expired. + A conta expirou. + + + Credentials have expired. + As credenciais expiraron. + + + Account is disabled. + A conta está deshabilitada. + + + Account is locked. + A conta está bloqueada. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.hu.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.hu.xlf new file mode 100644 index 0000000000..724397038c --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.hu.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Hitelesítési hiba lépett fel. + + + Authentication credentials could not be found. + Nem találhatók hitelesítési információk. + + + Authentication request could not be processed due to a system problem. + A hitelesítési kérést rendszerhiba miatt nem lehet feldolgozni. + + + Invalid credentials. + Érvénytelen hitelesítési információk. + + + Cookie has already been used by someone else. + Ezt a sütit valaki más már felhasználta. + + + Not privileged to request the resource. + Nem rendelkezik az erőforrás eléréséhez szükséges jogosultsággal. + + + Invalid CSRF token. + Érvénytelen CSRF token. + + + Digest nonce has expired. + A kivonat bélyege (nonce) lejárt. + + + No authentication provider found to support the authentication token. + Nem található a hitelesítési tokent támogató hitelesítési szolgáltatás. + + + No session available, it either timed out or cookies are not enabled. + Munkamenet nem áll rendelkezésre, túllépte az időkeretet vagy a sütik le vannak tiltva. + + + No token could be found. + Nem található token. + + + Username could not be found. + A felhasználónév nem található. + + + Account has expired. + A fiók lejárt. + + + Credentials have expired. + A hitelesítési információk lejártak. + + + Account is disabled. + Felfüggesztett fiók. + + + Account is locked. + Zárolt fiók. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.it.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.it.xlf new file mode 100644 index 0000000000..75d81cc8d9 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.it.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Si è verificato un errore di autenticazione. + + + Authentication credentials could not be found. + Impossibile trovare le credenziali di autenticazione. + + + Authentication request could not be processed due to a system problem. + La richiesta di autenticazione non può essere processata a causa di un errore di sistema. + + + Invalid credentials. + Credenziali non valide. + + + Cookie has already been used by someone else. + Il cookie è già stato usato da qualcun altro. + + + Not privileged to request the resource. + Non hai i privilegi per richiedere questa risorsa. + + + Invalid CSRF token. + CSRF token non valido. + + + Digest nonce has expired. + Il numero di autenticazione è scaduto. + + + No authentication provider found to support the authentication token. + Non è stato trovato un valido fornitore di autenticazione per supportare il token. + + + No session available, it either timed out or cookies are not enabled. + Nessuna sessione disponibile, può essere scaduta o i cookie non sono abilitati. + + + No token could be found. + Nessun token trovato. + + + Username could not be found. + Username non trovato. + + + Account has expired. + Account scaduto. + + + Credentials have expired. + Credenziali scadute. + + + Account is disabled. + L'account è disabilitato. + + + Account is locked. + L'account è bloccato. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.lb.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.lb.xlf new file mode 100644 index 0000000000..3dc76d5486 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.lb.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Bei der Authentifikatioun ass e Feeler opgetrueden. + + + Authentication credentials could not be found. + Et konnte keng Zouganksdate fonnt ginn. + + + Authentication request could not be processed due to a system problem. + D'Ufro fir eng Authentifikatioun konnt wéinst engem Problem vum System net beaarbecht ginn. + + + Invalid credentials. + Ongëlteg Zouganksdaten. + + + Cookie has already been used by someone else. + De Cookie gouf scho vun engem anere benotzt. + + + Not privileged to request the resource. + Keng Rechter fir d'Ressource unzefroen. + + + Invalid CSRF token. + Ongëltegen CSRF-Token. + + + Digest nonce has expired. + Den eemolege Schlëssel ass ofgelaf. + + + No authentication provider found to support the authentication token. + Et gouf keen Authentifizéierungs-Provider fonnt deen den Authentifizéierungs-Token ënnerstëtzt. + + + No session available, it either timed out or cookies are not enabled. + Keng Sëtzung disponibel. Entweder ass se ofgelaf oder Cookies sinn net aktivéiert. + + + No token could be found. + Et konnt keen Token fonnt ginn. + + + Username could not be found. + De Benotzernumm konnt net fonnt ginn. + + + Account has expired. + Den Account ass ofgelaf. + + + Credentials have expired. + D'Zouganksdate sinn ofgelaf. + + + Account is disabled. + De Konto ass deaktivéiert. + + + Account is locked. + De Konto ass gespaart. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.nl.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.nl.xlf new file mode 100644 index 0000000000..8969e9ef8c --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.nl.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Er heeft zich een authenticatieprobleem voorgedaan. + + + Authentication credentials could not be found. + Authenticatiegegevens konden niet worden gevonden. + + + Authentication request could not be processed due to a system problem. + Authenticatieaanvraag kon niet worden verwerkt door een technisch probleem. + + + Invalid credentials. + Ongeldige inloggegevens. + + + Cookie has already been used by someone else. + Cookie is al door een ander persoon gebruikt. + + + Not privileged to request the resource. + Onvoldoende rechten om de aanvraag te verwerken. + + + Invalid CSRF token. + CSRF-code is ongeldig. + + + Digest nonce has expired. + Serverauthenticatiesleutel (digest nonce) is verlopen. + + + No authentication provider found to support the authentication token. + Geen authenticatieprovider gevonden die de authenticatietoken ondersteunt. + + + No session available, it either timed out or cookies are not enabled. + Geen sessie beschikbaar, mogelijk is deze verlopen of cookies zijn uitgeschakeld. + + + No token could be found. + Er kon geen authenticatietoken worden gevonden. + + + Username could not be found. + Gebruikersnaam kon niet worden gevonden. + + + Account has expired. + Account is verlopen. + + + Credentials have expired. + Authenticatiegegevens zijn verlopen. + + + Account is disabled. + Account is gedeactiveerd. + + + Account is locked. + Account is geblokkeerd. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.no.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.no.xlf new file mode 100644 index 0000000000..3857ab4693 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.no.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + En autentiserings feil har skjedd. + + + Authentication credentials could not be found. + Påloggingsinformasjonen kunne ikke bli funnet. + + + Authentication request could not be processed due to a system problem. + Autentiserings forespørselen kunne ikke bli prosessert grunnet en system feil. + + + Invalid credentials. + Ugyldig påloggingsinformasjonen. + + + Cookie has already been used by someone else. + Cookie har allerede blitt brukt av noen andre. + + + Not privileged to request the resource. + Ingen tilgang til å be om gitt kilde. + + + Invalid CSRF token. + Ugyldig CSRF token. + + + Digest nonce has expired. + Digest nonce er utløpt. + + + No authentication provider found to support the authentication token. + Ingen autentiserings tilbyder funnet som støtter gitt autentiserings token. + + + No session available, it either timed out or cookies are not enabled. + Ingen sesjon tilgjengelig, sesjonen er enten utløpt eller cookies ikke skrudd på. + + + No token could be found. + Ingen token kunne bli funnet. + + + Username could not be found. + Brukernavn kunne ikke bli funnet. + + + Account has expired. + Brukerkonto har utgått. + + + Credentials have expired. + Påloggingsinformasjon har utløpt. + + + Account is disabled. + Brukerkonto er deaktivert. + + + Account is locked. + Brukerkonto er sperret. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.pl.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.pl.xlf new file mode 100644 index 0000000000..8d563d2120 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.pl.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Wystąpił błąd uwierzytelniania. + + + Authentication credentials could not be found. + Dane uwierzytelniania nie zostały znalezione. + + + Authentication request could not be processed due to a system problem. + Żądanie uwierzytelniania nie mogło zostać pomyślnie zakończone z powodu problemu z systemem. + + + Invalid credentials. + Nieprawidłowe dane. + + + Cookie has already been used by someone else. + To ciasteczko jest używane przez kogoś innego. + + + Not privileged to request the resource. + Brak uprawnień dla żądania wskazanego zasobu. + + + Invalid CSRF token. + Nieprawidłowy token CSRF. + + + Digest nonce has expired. + Kod dostępu wygasł. + + + No authentication provider found to support the authentication token. + Nie znaleziono mechanizmu uwierzytelniania zdolnego do obsługi przesłanego tokenu. + + + No session available, it either timed out or cookies are not enabled. + Brak danych sesji, sesja wygasła lub ciasteczka nie są włączone. + + + No token could be found. + Nie znaleziono tokenu. + + + Username could not be found. + Użytkownik o podanej nazwie nie istnieje. + + + Account has expired. + Konto wygasło. + + + Credentials have expired. + Dane uwierzytelniania wygasły. + + + Account is disabled. + Konto jest wyłączone. + + + Account is locked. + Konto jest zablokowane. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.pt_BR.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.pt_BR.xlf new file mode 100644 index 0000000000..846fd49e64 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.pt_BR.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Uma exceção ocorreu durante a autenticação. + + + Authentication credentials could not be found. + As credenciais de autenticação não foram encontradas. + + + Authentication request could not be processed due to a system problem. + A autenticação não pôde ser concluída devido a um problema no sistema. + + + Invalid credentials. + Credenciais inválidas. + + + Cookie has already been used by someone else. + Este cookie já esta em uso. + + + Not privileged to request the resource. + Não possui privilégios o bastante para requisitar este recurso. + + + Invalid CSRF token. + Token CSRF inválido. + + + Digest nonce has expired. + Digest nonce expirado. + + + No authentication provider found to support the authentication token. + Nenhum provedor de autenticação encontrado para suportar o token de autenticação. + + + No session available, it either timed out or cookies are not enabled. + Nenhuma sessão disponível, ela expirou ou cookies estão desativados. + + + No token could be found. + Nenhum token foi encontrado. + + + Username could not be found. + Nome de usuário não encontrado. + + + Account has expired. + A conta esta expirada. + + + Credentials have expired. + As credenciais estão expiradas. + + + Account is disabled. + Conta desativada. + + + Account is locked. + A conta esta travada. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.pt_PT.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.pt_PT.xlf new file mode 100644 index 0000000000..e661000148 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.pt_PT.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Ocorreu um excepção durante a autenticação. + + + Authentication credentials could not be found. + As credenciais de autenticação não foram encontradas. + + + Authentication request could not be processed due to a system problem. + O pedido de autenticação não foi concluído devido a um problema no sistema. + + + Invalid credentials. + Credenciais inválidas. + + + Cookie has already been used by someone else. + Este cookie já esta em uso. + + + Not privileged to request the resource. + Não possui privilégios para aceder a este recurso. + + + Invalid CSRF token. + Token CSRF inválido. + + + Digest nonce has expired. + Digest nonce expirado. + + + No authentication provider found to support the authentication token. + Nenhum fornecedor de autenticação encontrado para suportar o token de autenticação. + + + No session available, it either timed out or cookies are not enabled. + Não existe sessão disponível, esta expirou ou os cookies estão desativados. + + + No token could be found. + O token não foi encontrado. + + + Username could not be found. + Nome de utilizador não encontrado. + + + Account has expired. + A conta expirou. + + + Credentials have expired. + As credenciais expiraram. + + + Account is disabled. + Conta desativada. + + + Account is locked. + A conta esta trancada. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.ro.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.ro.xlf new file mode 100644 index 0000000000..440f110367 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.ro.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + A apărut o eroare de autentificare. + + + Authentication credentials could not be found. + Informațiile de autentificare nu au fost găsite. + + + Authentication request could not be processed due to a system problem. + Sistemul nu a putut procesa cererea de autentificare din cauza unei erori. + + + Invalid credentials. + Date de autentificare invalide. + + + Cookie has already been used by someone else. + Cookieul este folosit deja de altcineva. + + + Not privileged to request the resource. + Permisiuni insuficiente pentru resursa cerută. + + + Invalid CSRF token. + Tokenul CSRF este invalid. + + + Digest nonce has expired. + Tokenul temporar a expirat. + + + No authentication provider found to support the authentication token. + Nu a fost găsit nici un agent de autentificare pentru tokenul specificat. + + + No session available, it either timed out or cookies are not enabled. + Sesiunea nu mai este disponibilă, a expirat sau suportul pentru cookieuri nu este activat. + + + No token could be found. + Tokenul nu a putut fi găsit. + + + Username could not be found. + Numele de utilizator nu a fost găsit. + + + Account has expired. + Contul a expirat. + + + Credentials have expired. + Datele de autentificare au expirat. + + + Account is disabled. + Contul este dezactivat. + + + Account is locked. + Contul este blocat. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.ru.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.ru.xlf new file mode 100644 index 0000000000..1964f95e09 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.ru.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Ошибка аутентификации. + + + Authentication credentials could not be found. + Аутентификационные данные не найдены. + + + Authentication request could not be processed due to a system problem. + Запрос аутентификации не может быть обработан в связи с проблемой в системе. + + + Invalid credentials. + Недействительные аутентификационные данные. + + + Cookie has already been used by someone else. + Cookie уже был использован кем-то другим. + + + Not privileged to request the resource. + Отсутствуют права на запрос этого ресурса. + + + Invalid CSRF token. + Недействительный токен CSRF. + + + Digest nonce has expired. + Время действия одноразового ключа дайджеста истекло. + + + No authentication provider found to support the authentication token. + Не найден провайдер аутентификации, поддерживающий токен аутентификации. + + + No session available, it either timed out or cookies are not enabled. + Сессия не найдена, ее время истекло, либо cookies не включены. + + + No token could be found. + Токен не найден. + + + Username could not be found. + Имя пользователя не найдено. + + + Account has expired. + Время действия учетной записи истекло. + + + Credentials have expired. + Время действия аутентификационных данных истекло. + + + Account is disabled. + Учетная запись отключена. + + + Account is locked. + Учетная запись заблокирована. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.sk.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.sk.xlf new file mode 100644 index 0000000000..e6552a6a09 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.sk.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Pri overovaní došlo k chybe. + + + Authentication credentials could not be found. + Overovacie údaje neboli nájdené. + + + Authentication request could not be processed due to a system problem. + Požiadavok na overenie nemohol byť spracovaný kvôli systémovej chybe. + + + Invalid credentials. + Neplatné prihlasovacie údaje. + + + Cookie has already been used by someone else. + Cookie už bolo použité niekým iným. + + + Not privileged to request the resource. + Nemáte oprávnenie pristupovať k prostriedku. + + + Invalid CSRF token. + Neplatný CSRF token. + + + Digest nonce has expired. + Platnosť inicializačného vektoru (digest nonce) skončila. + + + No authentication provider found to support the authentication token. + Poskytovateľ pre overovací token nebol nájdený. + + + No session available, it either timed out or cookies are not enabled. + Session nie je k dispozíci, vypršala jej platnosť, alebo sú zakázané cookies. + + + No token could be found. + Token nebol nájdený. + + + Username could not be found. + Prihlasovacie meno nebolo nájdené. + + + Account has expired. + Platnosť účtu skončila. + + + Credentials have expired. + Platnosť prihlasovacích údajov skončila. + + + Account is disabled. + Účet je zakázaný. + + + Account is locked. + Účet je zablokovaný. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.sl.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.sl.xlf new file mode 100644 index 0000000000..ee70c9aaa4 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.sl.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Prišlo je do izjeme pri preverjanju avtentikacije. + + + Authentication credentials could not be found. + Poverilnic za avtentikacijo ni bilo mogoče najti. + + + Authentication request could not be processed due to a system problem. + Zahteve za avtentikacijo ni bilo mogoče izvesti zaradi sistemske težave. + + + Invalid credentials. + Neveljavne pravice. + + + Cookie has already been used by someone else. + Piškotek je uporabil že nekdo drug. + + + Not privileged to request the resource. + Nimate privilegijev za zahtevani vir. + + + Invalid CSRF token. + Neveljaven CSRF žeton. + + + Digest nonce has expired. + Začasni žeton je potekel. + + + No authentication provider found to support the authentication token. + Ponudnika avtentikacije za podporo prijavnega žetona ni bilo mogoče najti. + + + No session available, it either timed out or cookies are not enabled. + Seja ni na voljo, ali je potekla ali pa piškotki niso omogočeni. + + + No token could be found. + Žetona ni bilo mogoče najti. + + + Username could not be found. + Uporabniškega imena ni bilo mogoče najti. + + + Account has expired. + Račun je potekel. + + + Credentials have expired. + Poverilnice so potekle. + + + Account is disabled. + Račun je onemogočen. + + + Account is locked. + Račun je zaklenjen. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.sr_Cyrl.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.sr_Cyrl.xlf new file mode 100644 index 0000000000..35e4ddf29b --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.sr_Cyrl.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Изузетак при аутентификацији. + + + Authentication credentials could not be found. + Аутентификациони подаци нису пронађени. + + + Authentication request could not be processed due to a system problem. + Захтев за аутентификацију не може бити обрађен због системских проблема. + + + Invalid credentials. + Невалидни подаци за аутентификацију. + + + Cookie has already been used by someone else. + Колачић је већ искоришћен од стране неког другог. + + + Not privileged to request the resource. + Немате права приступа овом ресурсу. + + + Invalid CSRF token. + Невалидан CSRF токен. + + + Digest nonce has expired. + Време криптографског кључа је истекло. + + + No authentication provider found to support the authentication token. + Аутентификациони провајдер за подршку токена није пронађен. + + + No session available, it either timed out or cookies are not enabled. + Сесија није доступна, истекла је или су колачићи искључени. + + + No token could be found. + Токен не може бити пронађен. + + + Username could not be found. + Корисничко име не може бити пронађено. + + + Account has expired. + Налог је истекао. + + + Credentials have expired. + Подаци за аутентификацију су истекли. + + + Account is disabled. + Налог је онемогућен. + + + Account is locked. + Налог је закључан. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.sr_Latn.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.sr_Latn.xlf new file mode 100644 index 0000000000..ddc48076a2 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.sr_Latn.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Izuzetak pri autentifikaciji. + + + Authentication credentials could not be found. + Autentifikacioni podaci nisu pronađeni. + + + Authentication request could not be processed due to a system problem. + Zahtev za autentifikaciju ne može biti obrađen zbog sistemskih problema. + + + Invalid credentials. + Nevalidni podaci za autentifikaciju. + + + Cookie has already been used by someone else. + Kolačić je već iskorišćen od strane nekog drugog. + + + Not privileged to request the resource. + Nemate prava pristupa ovom resursu. + + + Invalid CSRF token. + Nevalidan CSRF token. + + + Digest nonce has expired. + Vreme kriptografskog ključa je isteklo. + + + No authentication provider found to support the authentication token. + Autentifikacioni provajder za podršku tokena nije pronađen. + + + No session available, it either timed out or cookies are not enabled. + Sesija nije dostupna, istekla je ili su kolačići isključeni. + + + No token could be found. + Token ne može biti pronađen. + + + Username could not be found. + Korisničko ime ne može biti pronađeno. + + + Account has expired. + Nalog je istekao. + + + Credentials have expired. + Podaci za autentifikaciju su istekli. + + + Account is disabled. + Nalog je onemogućen. + + + Account is locked. + Nalog je zaključan. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.sv.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.sv.xlf new file mode 100644 index 0000000000..b5f6209236 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.sv.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Ett autentiseringsfel har inträffat. + + + Authentication credentials could not be found. + Uppgifterna för autentisering kunde inte hittas. + + + Authentication request could not be processed due to a system problem. + Autentiseringen kunde inte genomföras på grund av systemfel. + + + Invalid credentials. + Felaktiga uppgifter. + + + Cookie has already been used by someone else. + Cookien har redan använts av någon annan. + + + Not privileged to request the resource. + Saknar rättigheter för resursen. + + + Invalid CSRF token. + Ogiltig CSRF-token. + + + Digest nonce has expired. + Förfallen digest nonce. + + + No authentication provider found to support the authentication token. + Ingen leverantör för autentisering hittades för angiven autentiseringstoken. + + + No session available, it either timed out or cookies are not enabled. + Ingen session finns tillgänglig, antingen har den förfallit eller är cookies inte aktiverat. + + + No token could be found. + Ingen token kunde hittas. + + + Username could not be found. + Användarnamnet kunde inte hittas. + + + Account has expired. + Kontot har förfallit. + + + Credentials have expired. + Uppgifterna har förfallit. + + + Account is disabled. + Kontot är inaktiverat. + + + Account is locked. + Kontot är låst. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.tr.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.tr.xlf new file mode 100644 index 0000000000..fbf9b260b0 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.tr.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Bir yetkilendirme istisnası oluştu. + + + Authentication credentials could not be found. + Yetkilendirme girdileri bulunamadı. + + + Authentication request could not be processed due to a system problem. + Bir sistem hatası nedeniyle yetkilendirme isteği işleme alınamıyor. + + + Invalid credentials. + Geçersiz girdiler. + + + Cookie has already been used by someone else. + Çerez bir başkası tarafından zaten kullanılmıştı. + + + Not privileged to request the resource. + Kaynak talebi için imtiyaz bulunamadı. + + + Invalid CSRF token. + Geçersiz CSRF fişi. + + + Digest nonce has expired. + Derleme zaman aşımı gerçekleşti. + + + No authentication provider found to support the authentication token. + Yetkilendirme fişini destekleyecek yetkilendirme sağlayıcısı bulunamadı. + + + No session available, it either timed out or cookies are not enabled. + Oturum bulunamadı, zaman aşımına uğradı veya çerezler etkin değil. + + + No token could be found. + Bilet bulunamadı. + + + Username could not be found. + Kullanıcı adı bulunamadı. + + + Account has expired. + Hesap zaman aşımına uğradı. + + + Credentials have expired. + Girdiler zaman aşımına uğradı. + + + Account is disabled. + Hesap devre dışı bırakılmış. + + + Account is locked. + Hesap kilitlenmiş. + + + + diff --git a/src/Symfony/Component/Security/Core/Resources/translations/security.ua.xlf b/src/Symfony/Component/Security/Core/Resources/translations/security.ua.xlf new file mode 100644 index 0000000000..7972121206 --- /dev/null +++ b/src/Symfony/Component/Security/Core/Resources/translations/security.ua.xlf @@ -0,0 +1,71 @@ + + + + + + An authentication exception occurred. + Помилка автентифікації. + + + Authentication credentials could not be found. + Автентифікаційні дані не знайдено. + + + Authentication request could not be processed due to a system problem. + Запит на автентифікацію не може бути опрацьовано у зв’язку з проблемою в системі. + + + Invalid credentials. + Невірні автентифікаційні дані. + + + Cookie has already been used by someone else. + Хтось інший вже використав цей сookie. + + + Not privileged to request the resource. + Відсутні права на запит цього ресурсу. + + + Invalid CSRF token. + Невірний токен CSRF. + + + Digest nonce has expired. + Закінчився термін дії одноразового ключа дайджесту. + + + No authentication provider found to support the authentication token. + Не знайдено провайдера автентифікації, що підтримує токен автентифікаціії. + + + No session available, it either timed out or cookies are not enabled. + Сесія недоступна, її час вийшов, або cookies вимкнено. + + + No token could be found. + Токен не знайдено. + + + Username could not be found. + Ім’я користувача не знайдено. + + + Account has expired. + Термін дії облікового запису вичерпано. + + + Credentials have expired. + Термін дії автентифікаційних даних вичерпано. + + + Account is disabled. + Обліковий запис відключено. + + + Account is locked. + Обліковий запис заблоковано. + + + + From 5dbec8a060d408ec6d009213a20f9bb7304609a0 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 18 Sep 2013 09:34:12 +0200 Subject: [PATCH 3/4] [Security] fixed README files --- src/Symfony/Component/Security/Acl/README.md | 4 ++-- src/Symfony/Component/Security/Core/README.md | 4 ++-- src/Symfony/Component/Security/Http/README.md | 4 ++-- src/Symfony/Component/Security/README.md | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Symfony/Component/Security/Acl/README.md b/src/Symfony/Component/Security/Acl/README.md index bf0e7b24c7..87e5092dce 100644 --- a/src/Symfony/Component/Security/Acl/README.md +++ b/src/Symfony/Component/Security/Acl/README.md @@ -13,8 +13,8 @@ Documentation: http://symfony.com/doc/2.4/book/security.html -Resources ---------- +Tests +----- You can run the unit tests with the following command: diff --git a/src/Symfony/Component/Security/Core/README.md b/src/Symfony/Component/Security/Core/README.md index 673b161b22..7fc281dd7e 100644 --- a/src/Symfony/Component/Security/Core/README.md +++ b/src/Symfony/Component/Security/Core/README.md @@ -13,8 +13,8 @@ Documentation: http://symfony.com/doc/2.4/book/security.html -Resources ---------- +Tests +----- You can run the unit tests with the following command: diff --git a/src/Symfony/Component/Security/Http/README.md b/src/Symfony/Component/Security/Http/README.md index 1bca91ea72..187f2b4423 100644 --- a/src/Symfony/Component/Security/Http/README.md +++ b/src/Symfony/Component/Security/Http/README.md @@ -13,8 +13,8 @@ Documentation: http://symfony.com/doc/2.4/book/security.html -Resources ---------- +Tests +----- You can run the unit tests with the following command: diff --git a/src/Symfony/Component/Security/README.md b/src/Symfony/Component/Security/README.md index 9452839765..52bff9ff7e 100644 --- a/src/Symfony/Component/Security/README.md +++ b/src/Symfony/Component/Security/README.md @@ -13,8 +13,8 @@ Documentation: http://symfony.com/doc/2.4/book/security.html -Resources ---------- +Tests +----- You can run the unit tests with the following command: From 14e9f460855c8689fdbf3d5bd620b7f2a15ba338 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Wed, 18 Sep 2013 09:41:17 +0200 Subject: [PATCH 4/4] [Security] removed unneeded hard dependencies in Core --- src/Symfony/Component/Security/Core/composer.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Security/Core/composer.json b/src/Symfony/Component/Security/Core/composer.json index 91851a822f..4e7ff3a650 100644 --- a/src/Symfony/Component/Security/Core/composer.json +++ b/src/Symfony/Component/Security/Core/composer.json @@ -16,16 +16,18 @@ } ], "require": { - "php": ">=5.3.3", - "symfony/event-dispatcher": "~2.1", - "symfony/http-foundation": "~2.4" + "php": ">=5.3.3" }, "require-dev": { + "symfony/event-dispatcher": "~2.1", + "symfony/http-foundation": "~2.4", "symfony/validator": "~2.2", "psr/log": "~1.0", "ircmaxell/password-compat": "1.0.*" }, "suggest": { + "symfony/event-dispatcher": "", + "symfony/http-foundation": "", "symfony/validator": "", "ircmaxell/password-compat": "" },