| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | 1 | public function __invoke(ContainerInterface $container): ReactApplication |
|
| 15 | { |
||
| 16 | /** @var Router $router */ |
||
| 17 | 1 | $router = $container->get(Router::class); |
|
| 18 | /** @var MiddlewareFactory $middlewareFactory */ |
||
| 19 | 1 | $middlewareFactory = $container->get(MiddlewareFactory::class); |
|
| 20 | /** @var RouteFactory $routeFactory */ |
||
| 21 | 1 | $routeFactory = $container->get(RouteFactory::class); |
|
| 22 | |||
| 23 | 1 | return new ReactApplication( |
|
| 24 | 1 | new MiddlewarePipeline(), |
|
| 25 | $router, |
||
| 26 | $middlewareFactory, |
||
| 27 | $routeFactory |
||
| 28 | ); |
||
| 31 |