我最近開始使用TYPO3和作曲家作爲學生。我對這一切都很陌生,我無法讓我的作曲家自動加載我想要的Mautic的api庫。我的代碼一直告訴我它找不到類。TYPO3擴展自動加載器不加載庫
在我的擴展程序根目錄我已經composer.json和它看起來像這樣
{
"name": "woeler\/wlr_typo_mautic",
"config": {
"vendor-dir": "Libraries"
},
"description": "Typo3 to Mautic connection",
"type": "typo3-cms-extension",
"require": {
"mautic\/api-library": "^2.6"
},
"autoload": {
"psr-4": {
"Woeler\\WlrTypoMautic\\": "Classes",
"Mautic\\Auth\\": "Libraries\/mautic\/api-library\/lib\/Auth\/"
}
},
"license": "MIT",
"authors": [
{
"name": "MyName",
"email": "[email protected]"
}
]
}
我可能做一個基本的錯誤,但我能找到的教程是不是真的幫助我。我在Classes/Controller文件夾中有一個類,我希望它使用一個應該屬於命名空間Mautic \ Auth \的類,但它只是告訴我它找不到。
的mautic類的實際位置是[擴展根] /Librariesmautic/api-library/lib/Auth/ApiAuth.php
我要求庫/ autoload.php我ext_tables.php文件。
任何人都可以看到我做錯了什麼?