TYPO3 Extbase:访问外部数据源(外部网络服务)

TYPO3 Extbase: Access to external data sources (external web service)

此处的 TYPO3 文档 https://docs.typo3.org/typo3cms/ExtbaseFluidBook/6-Persistence/4-use-foreign-data-sources.html 说,可以为 extbase 对象使用外部数据源:"These foreign data sources could be tables from the same TYPO3 database or a web service."

使用的数据映射器至少允许将对象映射到同一 MySQL 数据库中的任何 table。

我对这 "or a web service" 部分感兴趣。如何配置 data/property 映射器以从外部 Web 服务(例如 REST)获取和存储 extbase 模型?

TYPO3内核已经可以了吗?如果没有,有谁知道这种功能的扩展吗?

您正在查看非常古老的文档。虽然这对于学习 Extbase 概念仍然有效,但我不会再推荐 ExtbaseFluidBook 来了解硬核细节。我想你引用的说法更多地反映了一种愿望或一种可能性,而不是现实。我还不知道有人走那条路。

如果我想让外部源看起来 "Extbasey",我会实现一个存储库和模型,但只使用自己的逻辑 select 并坚持下去。

旁注:Typo3 v8 集成原则,但只处理记录,不处理对象(-dbal,不是 -orm):https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Database/Introduction/Index.html - this is used more and more in the core and in extensions. It might be feasible to include doctrine-orm and a doctrine-REST-backend like https://packagist.org/packages/circle/doctrine-rest-driver