当我尝试访问为TYPO3 v9.5.9所做的扩展的后端时,出现以下错误消息:
要解决此问题,我想找出哪个类/方法抛出此错误消息。有谁知道我怎么能找到答案?
我的composer.json文件如下:
{
"name": "secsign/secsign",
"type": "typo3-cms-extension",
"description": "This extension allows users to authenticate using their smart phone running the SecSign App.",
"authors": [
{
"name": "SecSign Technologies Inc.",
"role": "Developer"
}
],
"require": {
"typo3/cms-core": "^9.5"
},
"autoload": {
"psr-4": {
"Secsign\\Secsign\\": "Classes"
}
},
"autoload-dev": {
"psr-4": {
"Secsign\\Secsign\\Tests\\": "Tests"
}
},
"replace": {
"secsign/secsign": "self.version",
"typo3-ter/secsign": "self.version"
}
}
答案 0 :(得分:0)
composer.json
中的自动加载配置正确。 https://getcomposer.org/doc/04-schema.md#psr-4 答案 1 :(得分:0)
确保在composer.json中添加了类似的内容(当文件来自自定义ext而不是来自第三方时)
{
// ...
"autoload": {
"psr-4": {
"Secsign\\Secsign\\": "web/typo3conf/ext/SECSIGNEXT/Classes/",
}
}
// ...
}