4
4
5
5
use ApiClients \Foundation \Hydrator \Factory as HydratorFactory ;
6
6
use ApiClients \Foundation \Hydrator \Hydrator ;
7
- use ApiClients \Foundation \Transport \ClientInterface ;
7
+ use ApiClients \Foundation \Transport \ClientInterface as TransportClientInterface ;
8
8
use ApiClients \Foundation \Transport \Factory as TransportFactory ;
9
9
use ApiClients \Tools \CommandBus \CommandBusInterface ;
10
10
use ApiClients \Tools \CommandBus \Factory as CommandBusFactory ;
@@ -30,7 +30,10 @@ private static function createContainer(LoopInterface $loop, array $options): Co
30
30
31
31
$ container ->addDefinitions ([
32
32
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 ) {
34
37
return self ::createTransport ($ container , $ loop , $ options );
35
38
},
36
39
Hydrator::class => function (ContainerInterface $ container ) use ($ options ) {
@@ -49,7 +52,7 @@ private static function createTransport(
49
52
ContainerInterface $ container ,
50
53
LoopInterface $ loop ,
51
54
array $ options = []
52
- ): ClientInterface {
55
+ ): TransportClientInterface {
53
56
if (!isset ($ options [Options::TRANSPORT_OPTIONS ])) {
54
57
throw new InvalidArgumentException ('Missing Transport options ' );
55
58
}
0 commit comments