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.

Features 

  • EnvironmentBuilderFactory returning a TYPO3 core version compatible environment builder for TYPO3 v12 and v13. A FrontendEnvironmentBuilder is shipped today; a backend environment builder is planned.
  • StateManager to build, apply and restore an environment state.
  • StateApplyEvent and StateBackupEvent PSR-14 events dispatched around applying and backing up the state.

Compatibility 

Branch Extension TYPO3 PHP
main 1.x v12 / v13 8.1 - 8.5