-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] TYPO3 v13 compatibility #11
base: master
Are you sure you want to change the base?
Conversation
{ | ||
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) | ||
->getQueryBuilderForTable('pages'); | ||
$queryBuilder = (GeneralUtility::makeInstance(ConnectionPool::class)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
braces can be removed like it was before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But then my IDE is "complaining" and until PHP 8.4 is the minimum, this doesn't hurt.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want, you can even inject the ConnectionPool via DI.
|
||
private function getRequest(): ServerRequestInterface | ||
{ | ||
return ServerRequestFactory::fromGlobals(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can here also $GLOBALS['TYPO3_REQUEST']
be used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, not available in this context. Tried that before.
…ervice [TASK] adds rector to composer ci scripts
References #9