【问题标题】:How do I solve the error which I get when I try installing custom extension on TYPO3 ver. 10?当我尝试在 TYPO3 版本上安装自定义扩展时,如何解决我得到的错误。 10?
【发布时间】:2020-01-26 17:41:51
【问题描述】:

我已经安装了 TYPO3 版本。 10. 我有一个自定义扩展,可以在 TYPO3 版本上完美运行。 9. 我希望这个自定义扩展兼容最新的 TYPO3 版本。 10.但安装后出现错误。下面提到的是错误:

[Semantical Error] The annotation "@inject" in property ABC\EXTSocial\Controller\SocialController::$socialRepository was never imported. Did you maybe forget to add a "use" statement for this annotation?

有人可以帮我解决这个问题吗?

【问题讨论】:

    标签: controller annotations typo3 repository typo3-10.x


    【解决方案1】:

    @inject 注释自 TYPO3 ver.: 9 起已弃用,自 ver.: 10 起已删除。

    您应该改用@TYPO3\CMS\Extbase\Annotation\Inject

    Look at the Change Log #82869

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-26
      • 2021-05-29
      • 1970-01-01
      • 2021-05-07
      • 1970-01-01
      • 2013-07-24
      • 1970-01-01
      • 2022-12-11
      相关资源
      最近更新 更多