src/Porter.php
private function getProvider($name)
    {
        if ($this->providers->has($name)) {
            return $this->providers->get($name);
        }

        try {
            return $this->getOrCreateProviderFactory()->createProvider("$name");
        } catch (ObjectNotCreatedException $exception) {
            throw new ProviderNotFoundException("No such provider registered: \"$name\".", $exception);
        }
    }
private function getProvider($name)
    {
        if ($this->providers->has($name)) {
            return $this->providers->get($name);
        }

        try {
            return $this->getOrCreateProviderFactory()->createProvider("$name");
        } catch (ObjectNotCreatedException $exception) {
            throw new ProviderNotFoundException("No such provider registered: \"$name\".", $exception);
        }
    }
private function getProvider ( $ name ) { if ( $ this -> providers -> has ( $ name ) ) { return $ this -> providers -> get ( $ name ) ; } try { return $ this -> getOrCreateProviderFactory ( ) -> createProvider ( "$name" ) ; } catch ( ObjectNotCreatedException $ exception ) { throw new ProviderNotFoundException ( "No such provider registered: \"$name\"." , $ exception ) ; } }
Gets the provider matching the specified name.

@param string $name Provider name.

@return Provider

@throws ProviderNotFoundException The specified provider was not found.
Gets the provider matching the specified name .