-
-
Notifications
You must be signed in to change notification settings - Fork 187
[ECS] SetList SKIPs are overwritten when ecs.php SKIPs are defined #3972
Comments
Thanks for reporting. This is unfortunately default behavior of Symfony container. To fix it, it would have to be fixed in Symfony first. |
@TomasVotruba I think this behavior should be highlighted in the readme. |
Added information about skip option overriding setlist skips deprecated-packages#3972
* Update README.md Added information about skip option overriding setlist skips #3972 * Update README.md added info about related symfony issue symfony/symfony#26713
@TomasVotruba I'm looking at It seems to be feasible to configure in https://github.com/symplify/symplify/blob/main/packages/easy-ci/scoper.php |
Unprefixing can lead to undesired conflicts with existing code. Also the unprefixing is not 100 % reliable, as some frameworks use annotations or string magic types for reflection-based behavior (e.g. Nette and Symfony). Saying that, we should move the other direction and introduce own "ContainerConigurator" class. See rectorphp/rector-src#1891 Yet, if you manage to come up with container builder solution, we can include it in the core here. |
ISSUE
It is not possible to use setlist and add some customisation customised skips on top of them as the skips from setlist are overwritten.
config for reproduction:
Before testing please adjust namespace prefix for
ContainerBuilder
.output:
I couldn't find reasonable way (without using prefixed ContainerBuilder) to grab already configured skips and in the end I had to copy them inside app config for ecs.
If there is already a way to overcome this behavior and I'm just being stupid then please let me know. All help appreciated.
The text was updated successfully, but these errors were encountered: