We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 356b0e3 commit 69e8fc9Copy full SHA for 69e8fc9
src/Factory.php
@@ -36,12 +36,10 @@ public static function create(
36
$container->share(CommandBus::class, function () use ($container) {
37
return self::createCommandBus($container);
38
});
39
- array_map(
40
- [$container, 'share'],
41
- iterator_to_array(
42
- self::locateServices($container->get(EmitterInterface::class))
43
- )
44
- );
+
+ foreach (self::locateServices($container->get(EmitterInterface::class)) as $service) {
+ $container->share($service);
+ }
45
46
return new Client(
47
$container
0 commit comments