今天我决定下载FOS用户包,我使用了以下命令" composer require friendsofsymfony / user-bundle" ~2.0@dev""一切都下载了,所以我去了我的网站,有这个错误:
Attempted to load class "MonologBundle" from namespace "Symfony\Bundle\MonologBundle".
Did you forget a "use" statement for another namespace?
我在vendor文件夹中有捆绑包,尝试清理缓存,仍然相同。有什么想法吗?
堆栈:
in AppKernel.php line 14
at AppKernel->registerBundles() in bootstrap.php.cache line 2565
at Kernel->initializeBundles() in bootstrap.php.cache line 2394
at Kernel->boot() in bootstrap.php.cache line 2426
at Kernel->handle() in app_dev.php line 28
at {main}() in app_dev.php line 0
答案 0 :(得分:0)
问题在于composer.json,monolog不包括在内,所以它没有自动加载。
下载composer.json