src/Container.php
public function register(ServiceProviderInterface $provider) 
    {
        foreach($provider->provides() as $serviceName)
        {
            $this->setServiceResolverType($serviceName, static::RESOLVE_PROVIDER);
            $this->serviceProviders[$serviceName] = $provider;
        }
    }
public function register(ServiceProviderInterface $provider) 
    {
        foreach($provider->provides() as $serviceName)
        {
            $this->setServiceResolverType($serviceName, static::RESOLVE_PROVIDER);
            $this->serviceProviders[$serviceName] = $provider;
        }
    }
Register a service provider.
This will call the `provides` method on the given service provider instance.

@param ServiceProviderInterface          $provider The service provider instance.
@return void