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:
52
52
Another option is to use a "named" encoder and then select which encoder
53
53
you want to use dynamically.
54
54
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 ``.
56
56
This may be secure enough for a regular user, but what if you want your admins
57
57
to have a stronger algorithm, for example ``bcrypt ``. This can be done with
58
58
named encoders:
@@ -113,8 +113,8 @@ to use it, the class must implement
113
113
The interface requires one method - ``getEncoderName() `` - which should return
114
114
the name of the encoder to use::
115
115
116
- // src/Acme/UserBundle /Entity/User.php
117
- namespace Acme\UserBundle\ Entity;
116
+ // src/AppBundle /Entity/User.php
117
+ namespace AppBundle\ Entity\User ;
118
118
119
119
use Symfony\Component\Security\Core\Encoder\EncoderAwareInterface;
120
120
use Symfony\Component\Security\Core\User\UserInterface;
You can’t perform that action at this time.
0 commit comments