* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ /** * UserProviderInterface is the implementation that all user provider must * implement. * * @author Fabien Potencier */ interface UserProviderInterface { /** * Loads the user for the given username. * * This method must throw UsernameNotFoundException if the user is not * found. * * @param string $username The username * * @return AccountInterface A user instance * * @throws UsernameNotFoundException if the user is not found */ function loadUserByUsername($username); }