PUGX / PUGXMultiUserBundle

An extension for FOSUserBundle to handle users of different types. Compatible with Doctrine ORM.
163 stars 96 forks source link

The service definition "fos_user.registration.form.factory" does not exist. #54

Closed juanjointera5 closed 10 years ago

juanjointera5 commented 10 years ago

I followed the documentation and got this error while the composer update command:

[Symfony\Component\DependencyInjection\Exception\InvalidArgumentException]
  The service definition "fos_user.registration.form.factory" does not exist.

I'm using Symfony 2.3.

I added this to my composer.json:

...
"friendsofsymfony/user-bundle": "2.0.*@dev",
"pugx/multi-user-bundle": "3.0.*@dev"
...

and added this to my AppKernel.php:

new PUGX\MultiUserBundle\PUGXMultiUserBundle(),

and got the error while composer are clearing the dev cache.

Any idea ?

leopro commented 10 years ago

mmh it's strange.

to be sure, check in your_app/vendor/friendsofsymfony/user-bundle/FOS/UserBundle/Resources/config/registration.xml do you see the service fos_user.registration.form.factory ?

juanjointera5 commented 10 years ago

Thanks @leopro, I found the problem. I must add

new FOS\UserBundle\FOSUserBundle(),

to AppKernel.php

It's now working, but is this right ? It's not mentioned on the documentation.

leopro commented 10 years ago

It's not mentioned on the documentation

pull requests are welcome ;-)