44
55use ApiClients \Foundation \Hydrator \Factory as HydratorFactory ;
66use ApiClients \Foundation \Hydrator \Hydrator ;
7- use ApiClients \Foundation \Transport \ClientInterface ;
7+ use ApiClients \Foundation \Transport \ClientInterface as TransportClientInterface ;
88use ApiClients \Foundation \Transport \Factory as TransportFactory ;
99use ApiClients \Tools \CommandBus \CommandBusInterface ;
1010use 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