public function create($providerType, $providerParams = [])
    {
        if (!isset($this->factories[$providerType])) {
            throw new \LogicException("No factory found for provider of type {$providerType}");
        }

        return $this->factories[$providerType]->create($providerParams);
    }
public function create($providerType, $providerParams = [])
    {
        if (!isset($this->factories[$providerType])) {
            throw new \LogicException("No factory found for provider of type {$providerType}");
        }

        return $this->factories[$providerType]->create($providerParams);
    }
public function create ( $ providerType , $ providerParams = [ ] ) { if ( ! isset ( $ this -> factories [ $ providerType ] ) ) { throw new \ LogicException ( "No factory found for provider of type {$providerType}" ) ; } return $ this -> factories [ $ providerType ] -> create ( $ providerParams ) ; }
Create an Optimizer Collection provider from it's type and params.

@param string $providerType   Provider type (must be a valid query type defined into the factories array).
@param array  $providerParams Provider constructor params.

@return ProviderInterface
Create an Optimizer Collection provider from it s type and params .