Closed weierophinney closed 7 months ago
Hello @nuxwin,
I believe the answer is in the following lines:
https://github.com/laminas/laminas-pimple-config/blob/master/src/Config.php#L112 https://github.com/laminas/laminas-pimple-config/blob/master/src/Config.php#L135
In the invokables
config array if the key does not match the invokable FQCN the key is used as an alias, so in your first example the delegator factories are not called as their key does not match the actual service id (FQCN: SimpleCommandBus::class
), bit its alias CommandBus::class
kind regards
Good morning,
I've the following configuration:
Problem is that when I get the Command::Bus service, the PhpVersionCommandBusDelegatorFactory isn't invoked.
However, the following works:
Why there is no alias matching there?
Originally posted by @nuxwin at https://github.com/zendframework/zend-pimple-config/issues/12