Is it possible to get all dependencies implementing a certain interface using PHP-DI?

34 Views Asked by At

Using PHP-DI, it is possible to get a dependency using: $container->get(MyDependency::class).

Can I use a similar method to automatically get all dependencies implementing a certain interface?

0

There are 0 best solutions below