public function getProvider($name)
    {
        if (!$this->hasProvider($name)) {
            throw new \RuntimeException(sprintf('Unable to retrieve the provider named: "%s"', $name));
        }

        return $this->providers[$name];
    }
public function getProvider($name)
    {
        if (!$this->hasProvider($name)) {
            throw new \RuntimeException(sprintf('Unable to retrieve the provider named: "%s"', $name));
        }

        return $this->providers[$name];
    }
public function getProvider ( $ name ) { if ( ! $ this -> hasProvider ( $ name ) ) { throw new \ RuntimeException ( sprintf ( 'Unable to retrieve the provider named: "%s"' , $ name ) ) ; } return $ this -> providers [ $ name ] ; }
Gets a provider by name.

@param string $name A provider name

@return UrlShortenerProviderInterface

@throws \RuntimeException If the provider does not exist
Gets a provider by name .