[ticket/12620] Allow the user to define multiples environments

https://tracker.phpbb.com/browse/PHPBB3-12620

replace #2521

PHPBB3-12620

I think yes, because here the container isn't compiled and so we don't have a \phpbb\user object. We could create one but I'm not sure that's the  best thing to do.