What do you think about adding the ability to set multiple containers in the injector?
class Injector {
public function __construct(ContainerInterface $container, ContainerInterface ...$containers) {}
}
$injector = new Injector($container);
// or
$injector = new Injector($container1, $container2);
// or
$injector = new Injector(...$containers);
I know that i can take a composite container, but out of the box it will be easier.
In addition, the container itself may be a optional and multiple parameter.
class Injector {
public function __construct(ContainerInterface ...$containers) {}
}
It seems to me that this would be useful for those cases when the set of potential parameters is predetermined and the transfer of the container is already superfluous
What do you think about adding the ability to set multiple containers in the injector?
I know that i can take a composite container, but out of the box it will be easier.
In addition, the container itself may be a optional and multiple parameter.
It seems to me that this would be useful for those cases when the set of potential parameters is predetermined and the transfer of the container is already superfluous