Skip to content

Commit ee02ee7

Browse files
committed
Updated namespace references
1 parent e694a5d commit ee02ee7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Factory.php

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use ApiClients\Foundation\Hydrator\Factory as HydratorFactory;
66
use ApiClients\Foundation\Hydrator\Hydrator;
7-
use ApiClients\Foundation\Transport\ClientInterface;
7+
use ApiClients\Foundation\Transport\ClientInterface as TransportClientInterface;
88
use ApiClients\Foundation\Transport\Factory as TransportFactory;
99
use ApiClients\Tools\CommandBus\CommandBusInterface;
1010
use ApiClients\Tools\CommandBus\Factory as CommandBusFactory;
@@ -30,7 +30,10 @@ private static function createContainer(LoopInterface $loop, array $options): Co
3030

3131
$container->addDefinitions([
3232
LoopInterface::class => $loop,
33-
ClientInterface::class => function (ContainerInterface $container, LoopInterface $loop) use ($options) {
33+
TransportClientInterface::class => function (
34+
ContainerInterface $container,
35+
LoopInterface $loop
36+
) use ($options) {
3437
return self::createTransport($container, $loop, $options);
3538
},
3639
Hydrator::class => function (ContainerInterface $container) use ($options) {
@@ -49,7 +52,7 @@ private static function createTransport(
4952
ContainerInterface $container,
5053
LoopInterface $loop,
5154
array $options = []
52-
): ClientInterface {
55+
): TransportClientInterface {
5356
if (!isset($options[Options::TRANSPORT_OPTIONS])) {
5457
throw new InvalidArgumentException('Missing Transport options');
5558
}

0 commit comments

Comments
 (0)