我正在尝试创建我的第一个供应商捆绑包。我在这个问题中找到了很多信息,但我被卡住了。
- 我的 github 存储库在这里可用: https ://github.com/vtedesco/Peary
- 我已经在作曲家注册了它: https ://packagist.org/packages/vted/peary
在我通过命令安装的另一个项目中composer require vted/peary
,文件在我的目录下正确可见vendors/vted/peary
。
但是当它尝试像这样在 AppKernel.php 中添加它时:
$bundles = array(
...
new Vted\PearyBundle\VtedPearyBundle(),
...
);
我收到以下错误:
ClassNotFoundException in AppKernel.php line 24:
Attempted to load class "VtedPearyBundle" from namespace "Vted\PearyBundle".
Did you forget a "use" statement for "Vted\PearyBundle\VtedPearyBundle"?
我认为这可能是某个地方的命名问题,但我找不到。VtedPearyBundle.php类对我来说看起来不错。