我在Windows上使用Symfony和我想作爲official documentationSymfony的FOSUserBundle「類‘FOS UserBundle FOSUserBundle的2.1配置’沒有找到應用程序/ AppKernel.php
描述當我運行php app/console doctrine:schema:update --force
配置FOSUserBundle我得到這個消息:
Class 'FOS\UserBundle\FOSUserBundle' not found in app/AppKernel.php line 24;
我配置了AppKernel.php我應該:
public function registerBundles()
{
$bundles = array(
// The rest
new FOS\UserBundle\FOSUserBundle(),
);
return $bundles;
}
我FOSUserBundle.php
文件爲l在vendor/friendsofsymfony/user-bundle/FOS/UserBundle
你使用的是symfony 2.0還是2.1?作曲家或供應商?如果供應商,你更新autoload.php並清除緩存? – Sgoettschkes
顯示位於應用程序目錄中的autoload.php文件 –
@Sgoettschkes問題說2.1,所以他將使用作曲家 – JamesHalsall