I have started a project with silex… I did the authentication and everything works fine. But now, I want to get some of my user's data and the User class I use in my custom UserProvider (from this example Silex doc - Defining a custom User Provider) is final, so I can't override it. I intended to use the query in loadUserByUsername() to get all the information in order to limit access to the database.
Is overriding Symfony\Component\Security\Core\User the right way or do I have to make another usermanager, and if so, how to do it the right way?
Thanks