I need to log in a user with credentials from the database. However, an error is generated when defining the provider in security.yml.
Here is the error:
InvalidConfigurationException: Unrecognized options "class, property" under "security.providers.myapp_entity_admin.users.entity"
In the providers section in security.yml I have the following:
providers:
myapp_entity_admin:
users:
entity: { class: MyApp\MainBundle\Entity\User, property: username }
The question is why Symfony would throw the above error. Official documentation seems to indicate that this is correct.
Thanks,
JB
Well, it looks like I threw in too many parameters. The code in security.yml should look like this: