File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1212use DI \ContainerBuilder ;
1313use Generator ;
1414use Interop \Container \ContainerInterface ;
15- use League \Container \ Container ;
15+ use League \Event \ Emitter ;
1616use League \Event \EmitterInterface ;
1717use League \Tactician \Container \ContainerLocator ;
1818use League \Tactician \Handler \CommandHandlerMiddleware ;
@@ -31,11 +31,12 @@ public static function create(
3131 );
3232 }
3333
34- private static function createContainer (LoopInterface $ loop , array $ options ): Container
34+ private static function createContainer (LoopInterface $ loop , array $ options ): ContainerInterface
3535 {
3636 $ container = new ContainerBuilder ();
3737
3838 $ container ->addDefinitions ([
39+ EmitterInterface::class => new Emitter (),
3940 LoopInterface::class => $ loop ,
4041 TransportClient::class => function (ContainerInterface $ container , LoopInterface $ loop ) use ($ options ) {
4142 return self ::createTransport ($ container , $ loop , $ options );
Original file line number Diff line number Diff line change 77use ApiClients \Foundation \Factory ;
88use ApiClients \Foundation \Options ;
99use ApiClients \Tools \TestUtilities \TestCase ;
10- use League \Container \Container ;
1110use League \Event \CallbackListener ;
1211use League \Event \EmitterInterface ;
1312use League \Tactician \Exception \MissingHandlerException ;
@@ -23,7 +22,6 @@ public function testCreate()
2322
2423 $ client = Factory::create (
2524 $ loop ,
26- new Container (),
2725 [
2826 Options::HYDRATOR_OPTIONS => [],
2927 Options::TRANSPORT_OPTIONS => [],
You can’t perform that action at this time.
0 commit comments