Commit 7367244f authored by Jonathan Vollebregt's avatar Jonathan Vollebregt Committed by GitHub

Remove outdated example code from documentation

The `user` method hasn't been part of the security
trait since 7052d972 over 2 years ago.
parent 3435cbb3
......@@ -675,9 +675,7 @@ Traits
.. code-block:: php
$user = $app->user();
$encoded = $app->encodePassword($user, 'foo');
$encoded = $app->encodePassword($app['user'], 'foo');
``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