I am integrating FOSUserBundle in my application and I am trying to start php bin/console doctrine:migration:diff
after performing the recommended setup.
I systematically get:
In ArrayNode.php line 319:
Unrecognized option "resource" under "fos_user"
However, I set the following in my config/packages/routing.yaml
:
framework:
router:
strict_requirements: ~
fos_user:
resource: "@FOSUserBundle/Resources/config/routing/all.xml"
What am I doing wrong? I have "friendsofsymfony/user-bundle": "~2.0"
in mine composer.json
and ran composer update
.
Update
My fos_user.yaml
:
fos_user:
db_driver: orm
firewall_name: main
user_class: App\Entity\Admin\User
from_email:
address: no_reply@xxx.com
sender_name: xxx
source
share