Skip to content

Commit

Permalink
readd configuration block
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Feb 5, 2014
1 parent 64602c8 commit 7e3c0e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cookbook/security/named_encoders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ How to Choose the Password Encoder Algorithm Dynamically
Usually, the same password encoder is used for all users by configuring it
to apply to all instances of a specific class:

.. configuration-block::

.. code-block:: yaml
# app/config/security.yml
security:
# ...
Expand Down Expand Up @@ -117,7 +121,7 @@ the name of the encoder to use::
if ($this->isAdmin()) {
return 'harsh';
}

return null; // use the default encoder
}
}

0 comments on commit 7e3c0e3

Please sign in to comment.