Getting troubles when trying to install FOSUserBundle to Symfony2

fosuserbundle, symfony

Solution

You probably have installed latest FOSUserBundle which is used for Symfony2.1.x If you are using Symfony2.0.x change your deps file:

[FOSUserBundle]
    git=git://github.com/FriendsOfSymfony/FOSUserBundle.git
    target=bundles/FOS/UserBundle
    version=1.2.0

then reinstall the vendors with:

php bin/vendors install

Problem

When I'm trying to install FOSUserBundle I'm getting the following error: ``` Fatal error: Call to undefined method Symfony\Bundle\DoctrineBundle\Registry::getManager() in W:\symproject\app\cache\dev\appDevDebugProjectContainer.php on line 1039 ``` What can it be? I've also tried to install FOSUserBundle to a pure Symfony Standart Edition and encountered the same issue. I followed along this documentation.

Original source