简体   繁体   English

TYPO3 爬虫和 TYPO3 10.2 的依赖循环

[英]Dependency Cycles with TYPO3 Crawler and TYPO3 10.2

The TYPO3v9 branch of the crawler, should work (at least most of it) with TYPO3 10.2 as well.爬虫的 TYPO3v9 分支也应该(至少大部分)与 TYPO3 10.2 一起工作。 But I have gotten a bug report on cycle dependencies, not from composer but from the classloading after the extension is activated.但是我收到了一个关于循环依赖的错误报告,不是来自作曲家,而是来自扩展激活后的类加载。

Your dependencies have cycles. That will not work out. Cycles found: 

aoe/crawler/initialization->typo3/cms-frontend/authentication,
aoe/crawler/initialization->typo3/cms-frontend/tsfe,
typo3/cms-core/normalized-params-attribute->typo3/cms-frontend/timetracker,
typo3/cms-frontend/authentication->typo3/cms-frontend/backend-user-authentication,
typo3/cms-frontend/authentication->typo3/cms-frontend/maintenance-mode,
typo3/cms-frontend/authentication->typo3/cms-frontend/site,
typo3/cms-frontend/backend-user-authentication->typo3/cms-frontend/site,
typo3/cms-frontend/base-redirect-resolver->typo3/cms-frontend/site-resolver,
typo3/cms-frontend/eid->typo3/cms-core/normalized-params-attribute,
typo3/cms-frontend/maintenance-mode->typo3/cms-core/normalized-params-attribute,
typo3/cms-frontend/maintenance-mode->typo3/cms-frontend/eid,
typo3/cms-frontend/page-argument-validator->typo3/cms-frontend/page-resolver,
typo3/cms-frontend/page-resolver->aoe/crawler/initialization,
typo3/cms-frontend/page-resolver->typo3/cms-frontend/authentication,
typo3/cms-frontend/page-resolver->typo3/cms-frontend/backend-user-authentication,
typo3/cms-frontend/page-resolver->typo3/cms-frontend/site,
typo3/cms-frontend/page-resolver->typo3/cms-frontend/static-route-resolver,
typo3/cms-frontend/preview-simulator->typo3/cms-frontend/authentication,
typo3/cms-frontend/preview-simulator->typo3/cms-frontend/backend-user-authentication,
typo3/cms-frontend/site->typo3/cms-core/normalized-params-attribute,
typo3/cms-frontend/static-route-resolver->typo3/cms-frontend/base-redirect-resolver,
typo3/cms-frontend/tsfe->typo3/cms-frontend/authentication,
typo3/cms-frontend/tsfe->typo3/cms-frontend/eid,
typo3/cms-frontend/tsfe->typo3/cms-frontend/page-argument-validator,
typo3/cms-frontend/tsfe->typo3/cms-frontend/page-resolver,
typo3/cms-frontend/tsfe->typo3/cms-frontend/preview-simulator

I'm not really sure how to deal with this.我不确定如何处理这个问题。 Any suggestions.有什么建议。

Here is the composer.json in case you need it这是composer.json以防您需要它

{
    "name": "tnm/typo3v10-test",
    "type": "project",
    "description": "",
    "require": {
        "typo3/minimal": "^10.2",
        "typo3/cms-introduction": "~4.0",
        "typo3/cms-tstemplate": "^10.2",
        "typo3/cms-info": "^10.2",
        "typo3/cms-belog": "^10.2",
        "bk2k/bootstrap-package": "*",
        "aoepeople/crawler": "dev-typo3v9"
    },
    "config": {
        "vendor-dir": "vendor",
        "bin-dir": "bin"
    },
    "extra": {
        "typo3/cms": {
            "cms-package-dir": "{$vendor-dir}/typo3/cms",
            "web-dir": "public"
        }
    }
}

Forgot I had this question still open, but have a solution for it.忘了我还有这个问题,但有一个解决方案。

This was due to wrong middleware registration这是由于错误的中间件注册

Separate middleware initialization (#527)

The frontend usergroup needs to be set before the typo3/cms-frontend/page-resolver is processed. At that time the TSFE controller isn't initialized yet, so the TSFE configuration needs to be done at a later point.

https://github.com/AOEpeople/crawler/commit/b5443c33c635958635009c4d36ba30f5d97bebd0 https://github.com/AOEpeople/crawler/commit/b5443c33c635958635009c4d36ba30f5d97bebd0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM