Introduction
What does it do?
The Environment State Manager extension provides a programmatic way to build, apply and restore a TYPO3 environment.
It is useful whenever code that usually runs in a frontend request context has to be executed in a different context – for example in a backend module, a command line task or a middleware – where a fully initialized frontend environment (request, frontend controller, TypoScript, language and visibility aspects) is not available.
Note
Both frontend and backend environment handling are implemented.
The API is built around an Application, selecting the matching
environment builder for the requested type.
Features
Environmentreturning a TYPO3 core version compatible environment builder for TYPO3 v12 and v13. ABuilder Factory Frontendand aEnvironment Builder Backendare shipped.Environment Builder Stateto build, apply and restore an environment state.Manager StateandApply Event StatePSR-14 events dispatched around applying and backing up the state.Backup Event
Compatibility
| Branch | Extension | TYPO3 | PHP |
|---|---|---|---|
| main | 1.x | v12 / v13 | 8.1 - 8.5 |