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;
    }