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

Compatibility with CLI mode #211

Closed
wants to merge 2 commits into from
Closed

Conversation

PowerKiKi
Copy link
Collaborator

When in CLI mode TYPO3_REQUEST might not always exist. So we cannot
access it blindly. Instead, we use the pattern officially recommended
by \TYPO3\CMS\Core\Http\ApplicationType.

Without this patch, extensions such as messenger would crash when
sending emails.

Also see https://support.ecodev.ch/issues/9183

So IDE can better help us
When in CLI mode `TYPO3_REQUEST` might not always exist. So we cannot
access it blindly. Instead, we use the pattern officially recommended
by `\TYPO3\CMS\Core\Http\ApplicationType`.

Without this patch, extensions such as `messenger` would crash when
sending emails.
@PowerKiKi
Copy link
Collaborator Author

PowerKiKi commented Nov 2, 2022

rebased on latest master

@fabarea
Copy link
Owner

fabarea commented Nov 3, 2022

I missed your PR and was fixing that for another project at the same time...

It is in the same spirit. Let me know if anything is not as it should.

08c98b5

@PowerKiKi
Copy link
Collaborator Author

Nice ! It's pretty much same as mine, but better organized in Typo3Mode 👍

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