Decouple UserInterface in Symfony Security
Use Symfony Security without implementing UserInterface in your domain User object. UserInterface is a contract between your application and Symfony Security. It binds them together so that you can use Symfony Security in your application….