examples/ExampleFabric.php
public function getProvider($accessTokenParams = [], $useCache = true)
    {
        if (!$useCache) {
            $this->provider->getAccessToken($this->type, $accessTokenParams);

            return $this->provider;
        }
        return $this->provider->setAccessToken($this->getToken($accessTokenParams));
    }
public function getProvider($accessTokenParams = [], $useCache = true)
    {
        if (!$useCache) {
            $this->provider->getAccessToken($this->type, $accessTokenParams);

            return $this->provider;
        }
        return $this->provider->setAccessToken($this->getToken($accessTokenParams));
    }
public function getProvider ( $ accessTokenParams = [ ] , $ useCache = true ) { if ( ! $ useCache ) { $ this -> provider -> getAccessToken ( $ this -> type , $ accessTokenParams ) ; return $ this -> provider ; } return $ this -> provider -> setAccessToken ( $ this -> getToken ( $ accessTokenParams ) ) ; }
Returns the provider ready to use

@param array $accessTokenParams
@param bool $useCache
@return PDFfiller
Returns the provider ready to use