繁体   English   中英

Symfony添加捆绑

[英]Symfony Add Bundle

我试图在没有作曲家的情况下手动添加捆绑包,但没有成功。

错误

自动加载器的预期类“ Destination \\ Content \\ ExcelBundle \\ LiuggioExcelBundle”将在文件“ /src/\\Destination\\Content\\ExcelBundle\\LiuggioExcelBundle.php”中定义

我的文件夹结构如下所示。

src\
   Destination\
      Content\
         ExcelBundle\LiuggioExcelBundle.php

我的应用程序内核

$bundles = array(
            ....
            new Destination\Content\ExcelBundle\LiuggioExcelBundle(),
            ....
        );

有任何想法吗?

根据github: https : //github.com/liuggio/ExcelBundle/blob/master/LiuggioExcelBundle.php#L3的说法,命名空间是Liuggio\\ExcelBundle但应该是Destination\\Content\\ExcelBundle

您是否编辑了该命名空间?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM