public function register(ServiceProviderInterface $provider) 
    {
        foreach($provider->provides() as $serviceName)
        {
            $this->setServiceResolverType($serviceName, static::RESOLVE_PROVIDER);
            $this->serviceProviders[$serviceName] = $provider;
        }
    }