简体   繁体   中英

Symfony Add Bundle

I am trying to add a bundle manually without composer but with out any success.

Error

The autoloader expected class "Destination\\Content\\ExcelBundle\\LiuggioExcelBundle" to be defined in file "/src/\\Destination\\Content\\ExcelBundle\\LiuggioExcelBundle.php"

My folder structure looks like the following.

src\
   Destination\
      Content\
         ExcelBundle\LiuggioExcelBundle.php

My AppKernel

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

Any ideas?

According to the github : https://github.com/liuggio/ExcelBundle/blob/master/LiuggioExcelBundle.php#L3 , the namespace is Liuggio\\ExcelBundle but it should be Destination\\Content\\ExcelBundle .

Have you edited this namespace ?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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