`Symphony.Context.get('env')` – but if it's too complicated in the JS, we could also move this to the PHP.