Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7e3c0e3

Browse filesBrowse files
committed
readd configuration block
1 parent 64602c8 commit 7e3c0e3
Copy full SHA for 7e3c0e3

File tree

Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-1
lines changed
Open diff view settings
Collapse file

‎cookbook/security/named_encoders.rst‎

Copy file name to clipboardExpand all lines: cookbook/security/named_encoders.rst
+5-1Lines changed: 5 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.