Return username when converting LdapUser to string
Merge pull request #64 from RuslanZavacky/master

Added __toString() method for LdapUser class
Extract an interface for the ldapuser
Update provider to use the interface instead of the implementation
Add configuration option to provide the user model

in config.yml. Defaults to the internal user model.
Instantiate a user from the provided model in LdapUserProvider
Fix the inheritance chain of the LdapUserInterface

so that implementations only need to implement this interface.
Add documentation to explain the use of a custom user manager

like added in PR #69 [1].

[1] https://github.com/BorisMorel/LdapBundle/pull/69
Update configuration example

with the changes provided by PR #69 [1].

[1] https://github.com/BorisMorel/LdapBundle/pull/69
Update documentation.

The encoder for the custom user entity needs to be set in security.yml.
Fix issue #71
fix rememberme supportsClass()

La methode supportsClass($class) récupère un "string" de la class utilisé, afin que "$class instanceof LdapUserInterface)" fonctionne, il faut que $class soit une class et non un string.
Un simple $class = new $class() avant le return corrige ce problème.
Update LdapUserProvider.php