private function getBuses(ContainerBuilder $container)
    {
        $buses = [];
        $busDefinitions = $container->findTaggedServiceIds('sokil.command_bus');
        foreach ($busDefinitions as $busServiceId => $busTags) {
            foreach ($busTags as $busTagParams) {
                $buses[$busServiceId] = $container->findDefinition($busServiceId);
            }
        }

        return $buses;
    }
private function getBuses(ContainerBuilder $container)
    {
        $buses = [];
        $busDefinitions = $container->findTaggedServiceIds('sokil.command_bus');
        foreach ($busDefinitions as $busServiceId => $busTags) {
            foreach ($busTags as $busTagParams) {
                $buses[$busServiceId] = $container->findDefinition($busServiceId);
            }
        }

        return $buses;
    }
private function getBuses ( ContainerBuilder $ container ) { $ buses = [ ] ; $ busDefinitions = $ container -> findTaggedServiceIds ( 'sokil.command_bus' ) ; foreach ( $ busDefinitions as $ busServiceId => $ busTags ) { foreach ( $ busTags as $ busTagParams ) { $ buses [ $ busServiceId ] = $ container -> findDefinition ( $ busServiceId ) ; } } return $ buses ; }
Get command buses

@param ContainerBuilder $container
@return array
Get command buses