Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

[WIP] TYPO3 v13 compatibility #11

wants to merge 3 commits into from

Conversation

EvilBMP
Copy link
Collaborator

@EvilBMP EvilBMP commented Jan 30, 2025

References #9

@EvilBMP EvilBMP self-assigned this Jan 30, 2025
{
$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)
->getQueryBuilderForTable('pages');
$queryBuilder = (GeneralUtility::makeInstance(ConnectionPool::class))

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

Copy link
Collaborator Author

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.

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();

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?

Copy link
Collaborator Author

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.

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