從 Prestashop 項目根目錄中的 deploy.php 文件中,我調用一個方法 ModuleManagerBuilder::getInstance();進而調用其他舊版 Prestashop 類,例如Configuration This 拋出錯誤:[Error] Class 'Configuration' not found這個舊版 PS 類不使用命名空間語法,因此就像自動加載不知道這個舊類一樣僅當從 /src 和 /tests 文件夾中的類調用舊類時,PrestaShop 團隊才會解決該問題,如下所述:https: //github.com/PrestaShop/PrestaShop/blob/develop/autoload.php我怎樣才能讓deploy.php知道這個PrestaShop Legacy類?
添加回答
舉報
0/150
提交
取消