Symfony setter injection for polymorphic service – PHP
I'm using Symfony 5.4 and PHP 7.4 with the default service configuration. I have an abstract service like this: abstract class Parent { protected FooInterface $fooDependency; public abstract function setFooDependency(FooInterface $fooDependency): void; } In my child classes, I want to…