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
Currently only frontend environment handling is implemented.
Backend environment handling is planned to be added later. The API is
built around an Application, so backend support can be added
without breaking the public interfaces.
Features
Environmentreturning a TYPO3 core version compatible environment builder for TYPO3 v12 and v13. ABuilder Factory Frontendis shipped today; a backend environment builder is planned.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 |