public function register(string $name, ServiceManager $service_manager)
    {
        $this->service_managers[$name] = $service_manager;
        if (Core::i()->log) {
            Core::i()->log->debug('Registered service manager: ' . $name);
        }
    }