Skip to content

Commit 7e3c0e3

Browse files
committed
readd configuration block
1 parent 64602c8 commit 7e3c0e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cookbook/security/named_encoders.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ How to Choose the Password Encoder Algorithm Dynamically
1010
Usually, the same password encoder is used for all users by configuring it
1111
to apply to all instances of a specific class:
1212

13+
.. configuration-block::
14+
15+
.. code-block:: yaml
16+
1317
# app/config/security.yml
1418
security:
1519
# ...
@@ -117,7 +121,7 @@ the name of the encoder to use::
117121
if ($this->isAdmin()) {
118122
return 'harsh';
119123
}
120-
124+
121125
return null; // use the default encoder
122126
}
123127
}

0 commit comments

Comments
 (0)