File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ to apply to all instances of a specific class:
5252 Another option is to use a "named" encoder and then select which encoder
5353you want to use dynamically.
5454
55- In the previous example, you've set the ``sha512 `` algorithm for ``Acme\UserBundle \Entity\User ``.
55+ In the previous example, you've set the ``sha512 `` algorithm for ``AppBundle \Entity\User ``.
5656This may be secure enough for a regular user, but what if you want your admins
5757to have a stronger algorithm, for example ``bcrypt ``. This can be done with
5858named encoders:
@@ -113,8 +113,8 @@ to use it, the class must implement
113113The interface requires one method - ``getEncoderName() `` - which should return
114114the name of the encoder to use::
115115
116- // src/Acme/UserBundle /Entity/User.php
117- namespace Acme\UserBundle\ Entity;
116+ // src/AppBundle /Entity/User.php
117+ namespace AppBundle\ Entity\User ;
118118
119119 use Symfony\Component\Security\Core\Encoder\EncoderAwareInterface;
120120 use Symfony\Component\Security\Core\User\UserInterface;
You can’t perform that action at this time.
0 commit comments