public function getProvider($provider)
    {
        // Check if an instance has already been initiated. If not
        // build it and then add to the providers array.
        if (!isset($this->providers[$provider])) {
            $this->addProvider($provider);
        }

        return $this->providers[$provider];
    }
public function getProvider($provider)
    {
        // Check if an instance has already been initiated. If not
        // build it and then add to the providers array.
        if (!isset($this->providers[$provider])) {
            $this->addProvider($provider);
        }

        return $this->providers[$provider];
    }
public function getProvider ( $ provider ) { // Check if an instance has already been initiated. If not // build it and then add to the providers array. if ( ! isset ( $ this -> providers [ $ provider ] ) ) { $ this -> addProvider ( $ provider ) ; } return $ this -> providers [ $ provider ] ; }
Gets provider object by name. If there is no such provider
in providers array, it will try to create it, then save
it, and then return.

@param string $provider

@throws WrongProvider

@return Provider
Gets provider object by name . If there is no such provider in providers array it will try to create it then save it and then return .