swoole-bundle
swoole-bundle copied to clipboard
Fix overwriting trusted hosts / proxies
Symfony loads its values first when booted, then it starts registering bundles and this bundle overwrites config from
framework:
trusted_proxies:
The code in this bundle in SetRequestRuntimeConfiguration works when this value is not being set in config.
I tried writing tests but I need to somehow hook into container to get request so I can call::getTrustedProxies() on that, but I didn't find a way to do that. I've tested it in real application and it works there