How to Create a custom User Provider (The Symfony CookBook)