Permalink
Browse files

[Security] Split the component into 3 sub-components Core, ACL, HTTP

  • Loading branch information...
1 parent c3728d2 commit 782678123512f8d1e606ebd6f96895c2500ed179 @webmozart webmozart committed with fabpot Sep 16, 2013
Showing with 465 additions and 101 deletions.
  1. +3 −0 composer.json
  2. +2 −0 phpunit.xml.dist
  3. +3 −0 src/Symfony/Component/Security/Acl/.gitignore
  4. +19 −0 src/Symfony/Component/Security/Acl/LICENSE
  5. +23 −0 src/Symfony/Component/Security/Acl/README.md
  6. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Dbal/AclProviderBenchmarkTest.php
  7. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Dbal/AclProviderTest.php
  8. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Dbal/MutableAclProviderTest.php
  9. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/AclTest.php
  10. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/AuditLoggerTest.php
  11. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/DoctrineAclCacheTest.php
  12. 0 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/EntryTest.php
  13. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/FieldEntryTest.php
  14. +1 −1 ...Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/ObjectIdentityRetrievalStrategyTest.php
  15. +8 −8 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/ObjectIdentityTest.php
  16. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/PermissionGrantingStrategyTest.php
  17. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/RoleSecurityIdentityTest.php
  18. +2 −2 ...mfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/SecurityIdentityRetrievalStrategyTest.php
  19. +3 −3 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Domain/UserSecurityIdentityTest.php
  20. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Permission/BasicPermissionMapTest.php
  21. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Permission/MaskBuilderTest.php
  22. +1 −1 src/Symfony/Component/Security/{Tests/Acl → Acl/Tests}/Voter/AclVoterTest.php
  23. +42 −0 src/Symfony/Component/Security/Acl/composer.json
  24. +29 −0 src/Symfony/Component/Security/Acl/phpunit.xml.dist
  25. +3 −0 src/Symfony/Component/Security/Core/.gitignore
  26. +19 −0 src/Symfony/Component/Security/Core/LICENSE
  27. +23 −0 src/Symfony/Component/Security/Core/README.md
  28. +1 −1 ...Component/Security/{Tests/Core → Core/Tests}/Authentication/AuthenticationProviderManagerTest.php
  29. +1 −1 ...y/Component/Security/{Tests/Core → Core/Tests}/Authentication/AuthenticationTrustResolverTest.php
  30. +1 −1 ...ecurity/{Tests/Core → Core/Tests}/Authentication/Provider/AnonymousAuthenticationProviderTest.php
  31. +1 −1 ...nent/Security/{Tests/Core → Core/Tests}/Authentication/Provider/DaoAuthenticationProviderTest.php
  32. +1 −1 .../{Tests/Core → Core/Tests}/Authentication/Provider/PreAuthenticatedAuthenticationProviderTest.php
  33. +1 −1 ...curity/{Tests/Core → Core/Tests}/Authentication/Provider/RememberMeAuthenticationProviderTest.php
  34. +1 −1 ...ent/Security/{Tests/Core → Core/Tests}/Authentication/Provider/UserAuthenticationProviderTest.php
  35. +1 −1 ...ponent/Security/{Tests/Core → Core/Tests}/Authentication/RememberMe/InMemoryTokenProviderTest.php
  36. +1 −1 ...ny/Component/Security/{Tests/Core → Core/Tests}/Authentication/RememberMe/PersistentTokenTest.php
  37. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Authentication/Token/AbstractTokenTest.php
  38. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Authentication/Token/AnonymousTokenTest.php
  39. +1 −1 ...y/Component/Security/{Tests/Core → Core/Tests}/Authentication/Token/PreAuthenticatedTokenTest.php
  40. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Authentication/Token/RememerMeTokenTest.php
  41. +1 −1 ...y/Component/Security/{Tests/Core → Core/Tests}/Authentication/Token/UsernamePasswordTokenTest.php
  42. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Authorization/AccessDecisionManagerTest.php
  43. +1 −1 ...mfony/Component/Security/{Tests/Core → Core/Tests}/Authorization/Voter/AuthenticatedVoterTest.php
  44. +1 −1 ...mfony/Component/Security/{Tests/Core → Core/Tests}/Authorization/Voter/RoleHierarchyVoterTest.php
  45. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Authorization/Voter/RoleVoterTest.php
  46. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Encoder/BCryptPasswordEncoderTest.php
  47. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Encoder/BasePasswordEncoderTest.php
  48. +4 −4 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Encoder/EncoderFactoryTest.php
  49. +1 −1 ...Symfony/Component/Security/{Tests/Core → Core/Tests}/Encoder/MessageDigestPasswordEncoderTest.php
  50. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Encoder/Pbkdf2PasswordEncoderTest.php
  51. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Encoder/PlaintextPasswordEncoderTest.php
  52. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Role/RoleHierarchyTest.php
  53. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Role/RoleTest.php
  54. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Role/SwitchUserRoleTest.php
  55. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/SecurityContextTest.php
  56. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/User/AccountCheckerTest.php
  57. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/User/ChainUserProviderTest.php
  58. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/User/InMemoryProviderTest.php
  59. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/User/UserTest.php
  60. +6 −6 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Util/ClassUtilsTest.php
  61. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Util/SecureRandomTest.php
  62. +1 −1 src/Symfony/Component/Security/{Tests/Core → Core/Tests}/Util/StringUtilsTest.php
  63. +1 −1 .../Component/Security/{Tests/Core → Core/Tests}/Validator/Constraints/UserPasswordValidatorTest.php
  64. +42 −0 src/Symfony/Component/Security/Core/composer.json
  65. +29 −0 src/Symfony/Component/Security/Core/phpunit.xml.dist
  66. +3 −0 src/Symfony/Component/Security/Http/.gitignore
  67. +19 −0 src/Symfony/Component/Security/Http/LICENSE
  68. +23 −0 src/Symfony/Component/Security/Http/README.md
  69. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/AccessMapTest.php
  70. +1 −1 ...ent/Security/{Tests/Http → Http/Tests}/Authentication/DefaultAuthenticationFailureHandlerTest.php
  71. +1 −1 ...ent/Security/{Tests/Http → Http/Tests}/Authentication/DefaultAuthenticationSuccessHandlerTest.php
  72. +1 −1 ...ony/Component/Security/{Tests/Http → Http/Tests}/EntryPoint/BasicAuthenticationEntryPointTest.php
  73. +1 −1 ...ny/Component/Security/{Tests/Http → Http/Tests}/EntryPoint/DigestAuthenticationEntryPointTest.php
  74. +1 −1 ...fony/Component/Security/{Tests/Http → Http/Tests}/EntryPoint/FormAuthenticationEntryPointTest.php
  75. +1 −1 ...ony/Component/Security/{Tests/Http → Http/Tests}/EntryPoint/RetryAuthenticationEntryPointTest.php
  76. +1 −1 ...ny/Component/Security/{Tests/Http → Http/Tests}/Firewall/AbstractPreAuthenticatedListenerTest.php
  77. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/AccessListenerTest.php
  78. +1 −1 ...ony/Component/Security/{Tests/Http → Http/Tests}/Firewall/AnonymousAuthenticationListenerTest.php
  79. +1 −1 ...Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/BasicAuthenticationListenerTest.php
  80. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/ChannelListenerTest.php
  81. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/ContextListenerTest.php
  82. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/DigestDataTest.php
  83. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/LogoutListenerTest.php
  84. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/RememberMeListenerTest.php
  85. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/SwitchUserListenerTest.php
  86. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Firewall/X509AuthenticationListenerTest.php
  87. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/FirewallMapTest.php
  88. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/FirewallTest.php
  89. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/HttpUtilsTest.php
  90. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Logout/CookieClearingLogoutHandlerTest.php
  91. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Logout/DefaultLogoutSuccessHandlerTest.php
  92. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/Logout/SessionLogoutHandlerTest.php
  93. +1 −1 ...ymfony/Component/Security/{Tests/Http → Http/Tests}/RememberMe/AbstractRememberMeServicesTest.php
  94. +1 −1 ...nent/Security/{Tests/Http → Http/Tests}/RememberMe/PersistentTokenBasedRememberMeServicesTest.php
  95. +1 −1 src/Symfony/Component/Security/{Tests/Http → Http/Tests}/RememberMe/ResponseListenerTest.php
  96. +1 −1 ...fony/Component/Security/{Tests/Http → Http/Tests}/RememberMe/TokenBasedRememberMeServicesTest.php
  97. +1 −1 ...ymfony/Component/Security/{Tests/Http → Http/Tests}/Session/SessionAuthenticationStrategyTest.php
  98. +44 −0 src/Symfony/Component/Security/Http/composer.json
  99. +29 −0 src/Symfony/Component/Security/Http/phpunit.xml.dist
  100. +5 −0 src/Symfony/Component/Security/composer.json
  101. +6 −2 src/Symfony/Component/Security/phpunit.xml.dist
View
@@ -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",
View
@@ -21,6 +21,7 @@
<testsuite name="Symfony Test Suite">
<directory>./src/Symfony/Bridge/*/Tests/</directory>
<directory>./src/Symfony/Component/*/Tests/</directory>
+ <directory>./src/Symfony/Component/*/*/Tests/</directory>
<directory>./src/Symfony/Bundle/*/Tests/</directory>
</testsuite>
</testsuites>
@@ -37,6 +38,7 @@
<exclude>
<directory>./src/Symfony/Bridge/*/Tests</directory>
<directory>./src/Symfony/Component/*/Tests</directory>
+ <directory>./src/Symfony/Component/*/*/Tests</directory>
<directory>./src/Symfony/Bundle/*/Tests</directory>
<directory>./src/Symfony/Bundle/*/Resources</directory>
<directory>./src/Symfony/Component/*/Resources</directory>
@@ -0,0 +1,3 @@
+vendor/
+composer.lock
+phpunit.xml
@@ -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.
@@ -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
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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
{
@@ -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;
@@ -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;
@@ -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;
@@ -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 @@ public function testConstructor()
// 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 @@ public function testFromDomainObjectWithoutInterface()
{
$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 @@ public function getId()
}
}
-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
{
}
}
@@ -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;
@@ -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;
@@ -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 @@ public function getSecurityIdentityRetrievalTests()
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'),
@@ -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 @@ public function testConstructor()
// 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());
}
/**
@@ -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;
@@ -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;
@@ -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;
@@ -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"
+ }
+ }
+}
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<phpunit backupGlobals="false"
+ backupStaticAttributes="false"
+ colors="true"
+ convertErrorsToExceptions="true"
+ convertNoticesToExceptions="true"
+ convertWarningsToExceptions="true"
+ processIsolation="false"
+ stopOnFailure="false"
+ syntaxCheck="false"
+ bootstrap="vendor/autoload.php"
+>
+ <testsuites>
+ <testsuite name="Symfony Security Component ACL Test Suite">
+ <directory>./Tests/</directory>
+ </testsuite>
+ </testsuites>
+
+ <filter>
+ <whitelist>
+ <directory>./</directory>
+ <exclude>
+ <directory>./vendor</directory>
+ <directory>./Tests</directory>
+ </exclude>
+ </whitelist>
+ </filter>
+</phpunit>
@@ -0,0 +1,3 @@
+vendor/
+composer.lock
+phpunit.xml
@@ -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.
Oops, something went wrong. Retry.

0 comments on commit 7826781

Please sign in to comment.