- π©πͺGermany donquixote
I just ran into this.
I am trying to use the automatic discovery feature from symfony, to discover services in a module and in some composer packages.
This feature relies on unused services and aliases being removed, which only works if they are private.The ->setPublic(TRUE) in ->setAlias() makes this quite difficult.
- π©πͺGermany donquixote
The ->setPublic(TRUE) in ->setAlias() makes this quite difficult.
Actually it is possible by replacing the relevant aliases with a custom class 'ResilientAlias extends Alias', which refuses to be made public.
I will probably publish something which does this.
Anyway I still think the implementation from this issue is quite aggressive..