FOSUserBundle not found in appkernel
I am using symfony on Windows and I tried to configure FOSUserBundle as described in the official documentation. I get this error when try to update the schema: Class 'FOS\UserBundle\FOSUserBundle' not found in app/AppKernel.php line 20; searched for the problem and find this solution: adding this to autoload.php $loader->registerNamespaces(array( //all the rest 'FOS' => $vendor_dir . '/bundles', )); but it returns another error which says call to undefined method ...\ClassLoader::RegisterNamespace() in ...\autoload.php on line 13 can anybody plz tell me what should i do?:| and this is my