I am integrating FOSUserBundle in my application and I am trying to run php bin/console doctrine:migration:diff
after following the recommended set-up.
I am systematically getting a:
In ArrayNode.php line 319:
Unrecognized option "resource" under "fos_user"
Yet, I have 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 my composer.json
and ran composer update
.
Update
My fos_user.yaml
is:
fos_user:
db_driver: orm
firewall_name: main
user_class: App\Entity\Admin\User
from_email:
address: [email protected]
sender_name: xxx
config/routes.yaml
instead ofconfig/packages/routing.yaml
? – Calidanew FOS\UserBundle\FOSUserBundle(),
– Villainage/config/bundles.php
. Dlondero's suggestion worked. – Distribute