0

在堆栈上找不到解决方案。

我正在使用ubuntu服务器,

$php app/console generate:bundle --namespace=WMDN/FirstBundle --format=yml

一切顺利,直到:

Generating the bundle code: OK
Checking that the bundle is autoloaded: FAILED
Confirm automatic update of your Kernel [yes]? yes
Enabling the bundle inside the Kernel: OK
Confirm automatic update of the Routing [yes]? yes
Importing the bundle routing resource: OK


 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:

我认为这是权限,并将整个目录设置为 775 并确保所有者良好。我认为这是 symfony 的过时错误并删除了整个目录,并得到了 2.4.4

我正在关注一个教程,他们的捆绑包生成得很好,我也希望我的也这样做。

为什么不能自动加载?我的命名空间应该很好用。我想不明白。我安装了作曲家。

按照本教程系列:http ://www.youtube.com/watch?v=GIcY5YYfZ14 ,我真的很想创建我的第一个包,所以我可以继续。

总之,捆绑包无法自动加载的原因是什么?

4

1 回答 1

2

根据评论,解决方案是正确设置 --src 参数。

于 2014-05-23T16:38:28.643 回答