Skip to content

fix: router interface is wrong correct is site matcher#6416

Open
BreathCodeFlow wants to merge 1 commit intoTYPO3-Documentation:mainfrom
BreathCodeFlow:patch-1
Open

fix: router interface is wrong correct is site matcher#6416
BreathCodeFlow wants to merge 1 commit intoTYPO3-Documentation:mainfrom
BreathCodeFlow:patch-1

Conversation

@BreathCodeFlow
Copy link
Copy Markdown

See \TYPO3\CMS\Frontend\Middleware\SiteResolver

See \TYPO3\CMS\Frontend\Middleware\SiteResolver
@linawolf
Copy link
Copy Markdown
Member

The SiteMatcher is internal while the RouterInterface can be publicly used therefore I would suggest to stick with the RouterInterface here

@BreathCodeFlow
Copy link
Copy Markdown
Author

The SiteMatcher is internal while the RouterInterface can be publicly used therefore I would suggest to stick with the RouterInterface here

Yes, this is correct; however, if you import the RouterInterface, the code breaks. The RouterInterface requires the Site, but the dependency injection (DI) does not import it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants