private function resolveServiceProvider(string $name)
    {
        list($service, $isShared) = $this->serviceProviders[$name]->resolve($name, $this);

        if ($isShared) {
            $this->resolvedSharedServices[$name] = $service;
        }

        return $service;
    }
private function resolveServiceProvider(string $name)
    {
        list($service, $isShared) = $this->serviceProviders[$name]->resolve($name, $this);

        if ($isShared) {
            $this->resolvedSharedServices[$name] = $service;
        }

        return $service;
    }
private function resolveServiceProvider ( string $ name ) { list ( $ service , $ isShared ) = $ this -> serviceProviders [ $ name ] -> resolve ( $ name , $ this ) ; if ( $ isShared ) { $ this -> resolvedSharedServices [ $ name ] = $ service ; } return $ service ; }
Resolves a service instance from a provider and stores the
result inside the shared services if needed.

@param string            $name The service name.

@return mixed The service instance created by the provider.
Resolves a service instance from a provider and stores the result inside the shared services if needed .