Skip to content
Discussion options

You must be logged in to vote

The example in the docs is actually how you would wrap an application (here is the Symfony runtime as an example.

How complex it is to make an existing application worker-compatible always depends on the application itself though. The more global and static variables an application relies on, the harder it is to make it worker mode compatible.

If you look at Symfony Runtime as an example, it ends up being a relatively small wrapper around the framework, since the runtime already decouples Symfony from any global state and Symfony generally relies on a lot of DI. Other worker implementations like the one for Laravel go through a lot of effort to reset global state, since Laravel relies on …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SimJoSt
Comment options

Answer selected by SimJoSt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants