我碰巧遇到了创作中的所有 symfony 问题......
我想创建一个新项目。
我复制“ symfony2 ”文件夹,然后重命名:
php app/console generate:bundle
它说:
Generating the bundle code: OK
Checking that the bundle is autoloaded: FAILED
Confirm automatic update of your Kernel [yes]?
Enabling the bundle inside the Kernel: OK
Confirm automatic update of the Routing [yes]?
Importing the bundle routing resource: FAILED
The command was not able to configure everything automatically.
You must do the following changes manually.
- Edit the composer.json file and register the bundle
namespace in the "autoload" section:
Bundle MddevPsavBundle is already imported.
为什么是这样?当我上次没有这个问题时,我做了同样的命令?
我该如何准确解决这个问题?我应该在该composer.json
文件中添加什么?
我尝试了一些东西,但我得到了:
Fatal error: Class 'Mddev\PsavBundle\MddevPsavBundle' not found in
/var/www/projetQ/app/AppKernel.php on line 22