Provider/LocationProviderRegistry.php
public function getProvider($key)
    {
        if (!$this->hasProvider($key)) {
            throw new \InvalidArgumentException(sprintf('Location Provider with key "%s" does not exist', $key));
        }

        return $this->providers[$key];
    }
public function getProvider($key)
    {
        if (!$this->hasProvider($key)) {
            throw new \InvalidArgumentException(sprintf('Location Provider with key "%s" does not exist', $key));
        }

        return $this->providers[$key];
    }
public function getProvider ( $ key ) { if ( ! $ this -> hasProvider ( $ key ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Location Provider with key "%s" does not exist' , $ key ) ) ; } return $ this -> providers [ $ key ] ; }
Get specified provider

@param $key
@return LocationProviderInterface
@throws \InvalidArgumentException
Get specified provider