26 сент. 2011 г. - In project, I am using standard Symfony2 authentication mechanism. So, by default, I created entity User and added it to security.yml file like this.