Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
32 | public function __invoke(ContainerInterface $container): BookingService |
||
33 | { |
||
34 | $config = $container->get('config'); |
||
35 | |||
36 | $locations = $config['locations']?? []; |
||
37 | |||
38 | return new BookingService( |
||
39 | $container->get(CargoRepositoryInterface::class), |
||
40 | $container->get(TransactionManager::class), |
||
41 | $container->get(RoutingServiceInterface::class), |
||
42 | $locations |
||
43 | ); |
||
44 | } |
||
45 | } |
||
46 |