We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df1064 commit bd34c6bCopy full SHA for bd34c6b
book/security.rst
@@ -1175,8 +1175,8 @@ in the following way from a controller::
1175
// whatever *your* User object is
1176
$user = new AppBundle\Entity\User();
1177
$plainPassword = 'ryanpass';
1178
- $encoded = $this->container->get('security.password_encoder')
1179
- ->encodePassword($user, $plainPassword);
+ $encoder = $this->container->get('security.password_encoder');
+ $encoded = $encoder->encodePassword($user, $plainPassword);
1180
1181
$user->setPassword($encoded);
1182
0 commit comments