| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 20 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 3 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 27 | public function process(ContainerBuilder $container)  | 
            ||
| 28 |     { | 
            ||
| 29 |         $builders = BusBuildersFromConfig::convert($container->getExtensionConfig('tactician')[0]); | 
            ||
| 30 | |||
| 31 | $routing = $this->handlerMapping->build(  | 
            ||
| 32 | $container,  | 
            ||
| 33 | new Routing($builders->getBusIds())  | 
            ||
| 34 | );  | 
            ||
| 35 | |||
| 36 | // Register the completed builders in our container  | 
            ||
| 37 |         foreach ($builders as $builder) { | 
            ||
| 38 | /** @var BusBuilder $builder */  | 
            ||
| 39 | $builder->registerInContainer($container, $routing->commandToServiceMapping($builder->id()));  | 
            ||
| 40 | }  | 
            ||
| 41 | |||
| 42 | // Setup default aliases  | 
            ||
| 43 |         $container->setAlias('tactician.commandbus', $builders->defaultBus()->serviceId()); | 
            ||
| 44 |         $container->setAlias('tactician.handler.locator.symfony', $builders->defaultBus()->locatorServiceId()); | 
            ||
| 45 |         $container->setAlias('tactician.middleware.command_handler', $builders->defaultBus()->commandHandlerMiddlewareId()); | 
            ||
| 46 | }  | 
            ||
| 47 | }  | 
            ||
| 48 |