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 #108

Merged
merged 3 commits into from
Nov 7, 2022
Merged

Compatibility with CLI mode #108

merged 3 commits into from
Nov 7, 2022

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

This is in direct relation with fabarea/vidi#211 and should be merged together.

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.
composer.json Outdated
"typo3/cms-backend": "^11.0",
"typo3/cms-extbase": "^11.0",
"typo3/cms-frontend": "^11.0",
"fluidtypo3/vhs": "^6.1"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PowerKiKi

I would remove this dependency fluidtypo3/vhs.
This is true we have a class LoadAssetsViewHelper but I am removing its usage in our project and will drop it eventually.

I would say, it should be sufficient:

"typo3/cms-core": "^11.0",
"fab/vidi": "^5 || dev-master"

Because will be dropped it eventually, according to
fabarea#108 (comment)
@PowerKiKi
Copy link
Collaborator Author

I removed the dep, as you asked.

@fabarea fabarea merged commit c59fd89 into fabarea:master Nov 7, 2022
@fabarea fabarea deleted the cli-compat branch November 7, 2022 15:20
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.

None yet

2 participants