Search code examples
phpsilexremember-me

silex custom/persistant remember me


I want use the class PersistentTokenBasedRememberMeServices or my custom class for delivery the remember me token but I dont know how to configure it into Silex 2.

How can I do ?

Thanks in advance.

EDIT : I know the default remember me configuration and work fine. But, I need custom this default behavior for implement more security check.


Solution

  • This is not descibed in the documentation :

    For load a custom remberme service, I have define the service manually with name : "security.remember_me.service.".

    Now I have my custom behavior.