Forráskód Böngészése

merged branch marcw/doctrine-bridge-security (PR #1672)

Commits
-------

66c698a Updated update.md
b33e1ba [SecurityBundle] Reported namespace change of EntityUserProvider
26e96c4 [DoctrineBridge] Changed namespace of EntityUserProvider[B
1633cb3 [Security] Moved EntityUserProvider to Doctrine Bridge

Discussion
----------

[2.1] Moved EntityUserProvider class from Security Component to Doctrine Bridge

I guess that this should better be placed in the Doctrine Bridge.

---------------------------------------------------------------------------

by henrikbjorn at 2011/07/13 00:00:39 -0700

Missing entry in UPDATE.md

---------------------------------------------------------------------------

by schmittjoh at 2011/07/13 00:34:10 -0700

What is our distribution strategy for these bridges?

---------------------------------------------------------------------------

by stof at 2011/07/13 00:53:29 -0700

@schmittjoh Each bridge (Doctrine, Twig, Monolog) is available as a separate repo just like the components.

---------------------------------------------------------------------------

by schmittjoh at 2011/07/13 00:57:41 -0700

I've just checked, but we don't seem to have PEAR packages for these.

If we make this change, then it should still be easy to install the component because there is no benefit of moving this class there. The bridges are mainly useful for extracting code from bundles.

---------------------------------------------------------------------------

by stof at 2011/07/13 01:02:42 -0700

@fabpot any plan to add the bridges on the PEAR channel ?

---------------------------------------------------------------------------

by fabpot at 2011/07/13 02:27:05 -0700

@stof: Bridges will be added with the RC5 release.
Fabien Potencier 14 éve
szülő
commit
c881379fe7

+ 4 - 0
UPDATE.md

@@ -9,6 +9,10 @@ timeline closely anyway.
 RC4 to RC5
 ----------
 
+* `EntityUserProvider` class has been moved and FQCN changed from
+  `Symfony\Component\Security\Core\User\EntityUserProvider` to
+  `Symfony\Bridge\Doctrine\Security\User\EntityUserProvider`.
+
 * Removed the guesser for the Choice constraint as the constraint only knows
   about the valid keys, and not their values.
 

+ 1 - 1
src/Symfony/Component/Security/Core/User/EntityUserProvider.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Symfony\Component\Security\Core\User;
+namespace Symfony\Bridge\Doctrine\Security\User;
 
 use Doctrine\ORM\EntityManager;
 use Symfony\Component\Security\Core\Exception\UnsupportedUserException;

+ 1 - 1
src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml

@@ -13,7 +13,7 @@
         <parameter key="security.encoder.digest.class">Symfony\Component\Security\Core\Encoder\MessageDigestPasswordEncoder</parameter>
         <parameter key="security.encoder.plain.class">Symfony\Component\Security\Core\Encoder\PlaintextPasswordEncoder</parameter>
 
-        <parameter key="security.user.provider.entity.class">Symfony\Component\Security\Core\User\EntityUserProvider</parameter>
+        <parameter key="security.user.provider.entity.class">Symfony\Bridge\Doctrine\Security\User\EntityUserProvider</parameter>
         <parameter key="security.user.provider.in_memory.class">Symfony\Component\Security\Core\User\InMemoryUserProvider</parameter>
         <parameter key="security.user.provider.in_memory.user.class">Symfony\Component\Security\Core\User\User</parameter>
         <parameter key="security.user.provider.chain.class">Symfony\Component\Security\Core\User\ChainUserProvider</parameter>