TYPO3 上下文中的 eID 是什么? [英] What is an eID in the context of TYPO3?

查看:25
本文介绍了TYPO3 上下文中的 eID 是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个词我遇到过好几次了.通常,资源会直接解释如何做某事,但不会提及这是什么或它的用途.另外,一堆资源是德语还是不太清楚.

I have come across this term several times. Often the resources jump right into explaining how to do something but do not mention what this is or what it is for. Also, a bunch of resources are in German or not very clear.

所以,

  • 什么是电子身份证?
  • 这是 TYPO3 特定的东西还是一般概念?
  • 你可以用它做什么?
  • 这仍然与 TYPO3 >= 9 相关吗?

示例资源:

构建一个可以放在网站上的插件,或者一个不需要网站即可运行的 eID.

Either build a plugin you can put on your site, or an eID that does not need a site to function.

https://stackoverflow.com/a/18593815/2444812

这个资源实际上解释了它(虽然是德语),但代码看起来非常过时.

This resource actually explains it (though in German), but the code looks terribly outdated.

https://www.webmasterpro.de/coding/文章/cms-typo3-eid-mechanismus.html

顺便说一句,Stack Overflow 上有一个标签 eID,但它用于电子身份证 :(

btw, there is a tag eID on Stack Overflow but it is for Electronic Identity Card :(

推荐答案

eID 机制是一种具有自定义前端请求处理程序的过时方法.默认请求处理调用 TypoScriptFrontendController 来像往常一样呈现页面和内容.

The eID mechanism is an outdated approach to have a custom frontend request handler. The default request handling invokes the TypoScriptFrontendController to render pages and content as usual.

相比之下,eID 脚本可以执行任意操作来生成输出,并且不受常规渲染的约束.事实上,eID 脚本是在一个非常小的环境下执行的,因此每个依赖项(例如解析的 TypoScript 设置)都必须手动加载.有用于常见任务的 EidUtility.

Compared to that an eID script can perform arbitary actions to generate output and is not bound to the regular rendering. In fact, eID scripts are executed with a very minimal environment so every dependency (e.g. parsed TypoScript setup) must be loaded manually. There is the EidUtility for common tasks.

现在不再需要 eID,因为 PSR-15(中间件)在 TYPO3v9 中实现.这提供了一种更简洁的 API,并且可以轻松地在前端请求处理的任何位置注入自定义逻辑,以执行完全自定义的输出或拦截和修改由 TypoScriptFrontendController 生成的默认响应.

Nowadays eID is not necessary anymore since PSR-15 (Middlewares) has been implemented in TYPO3v9. This provides a way cleaner API and makes it easy to inject custom logic anywhere in the frontend request handling, either to perform completely custom output or intercept and modify the default response generated by the TypoScriptFrontendController.

因此,如果可能,应使用中间件而不是 eID 脚本.

So if possible, middlewares should be used instead of eID scripts.

这篇关于TYPO3 上下文中的 eID 是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆