Commit 79c588dd authored by Fabien Potencier's avatar Fabien Potencier

minor #1533 Remove outdated example code from documentation (jnvsor)

This PR was merged into the 2.1.x-dev branch.

Discussion
----------

Remove outdated example code from documentation

The `user` method hasn't been part of the security
trait since 7052d972 over 2 years ago.

Commits
-------

7367244f Remove outdated example code from documentation
parents 3435cbb3 7367244f
...@@ -675,9 +675,7 @@ Traits ...@@ -675,9 +675,7 @@ Traits
.. code-block:: php .. code-block:: php
$user = $app->user(); $encoded = $app->encodePassword($app['user'], 'foo');
$encoded = $app->encodePassword($user, 'foo');
``Silex\Route\SecurityTrait`` adds the following methods to the controllers: ``Silex\Route\SecurityTrait`` adds the following methods to the controllers:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment