public function getProvider($index, $type)
    {
        if (!isset($this->providers[$index][$type])) {
            throw new \InvalidArgumentException(sprintf('No provider was registered for index "%s" and type "%s".', $index, $type));
        }

        return $this->container->get($this->providers[$index][$type]);
    }
public function getProvider($index, $type)
    {
        if (!isset($this->providers[$index][$type])) {
            throw new \InvalidArgumentException(sprintf('No provider was registered for index "%s" and type "%s".', $index, $type));
        }

        return $this->container->get($this->providers[$index][$type]);
    }
public function getProvider ( $ index , $ type ) { if ( ! isset ( $ this -> providers [ $ index ] [ $ type ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'No provider was registered for index "%s" and type "%s".' , $ index , $ type ) ) ; } return $ this -> container -> get ( $ this -> providers [ $ index ] [ $ type ] ) ; }
Gets the provider for an index and type.

@param string $index
@param string $type

@return PagerProviderInterface

@throws \InvalidArgumentException if no provider was registered for the index and type
Gets the provider for an index and type .