BorisMorel/LdapBundle — pull request #26 by fieg (2012-04-26 09:28:32+00:00)
Title: Extendable/configurable LdapUser class

Hi Boris,

I'm using your LdapBundle, which works great, but I wanted to extend the LdapUser class. This didn't seem possible because the LdapUser class was hardcoded in the LdapUserProvider.

In this pull request I made the LdapUser class configurable by passing it as an argument to the LdapUserProvider service. Now it's possible to set the value in `config/parameters.ini`:

`imag_ldap.security.user.class = "Fieg\Bundle\AcmeBundle\Entity\User"`

The `Fieg\Bundle\AcmeBundle\Entity\User` class extends the `IMAG\LdapBundle\User\LdapUser` class.