public function getServiceByProvider($provider)
    {
        $redirect = $this->url($this->config[$provider]['callback_route'], array(
            'provider' => $provider,
        ));

        $serviceName = $this->serviceMap[$provider];
        $storage     = new SessionStorage(false);
        $credentials = new ConsumerCredentials(
            $this->config[$provider]['key'],
            $this->config[$provider]['secret'],
            $redirect
        );

        $service = $this->serviceFactory->createService(
            $serviceName,
            $credentials,
            $storage,
            $this->config[$provider]['scope']
        );

        return $service;
    }
public function getServiceByProvider($provider)
    {
        $redirect = $this->url($this->config[$provider]['callback_route'], array(
            'provider' => $provider,
        ));

        $serviceName = $this->serviceMap[$provider];
        $storage     = new SessionStorage(false);
        $credentials = new ConsumerCredentials(
            $this->config[$provider]['key'],
            $this->config[$provider]['secret'],
            $redirect
        );

        $service = $this->serviceFactory->createService(
            $serviceName,
            $credentials,
            $storage,
            $this->config[$provider]['scope']
        );

        return $service;
    }
public function getServiceByProvider ( $ provider ) { $ redirect = $ this -> url ( $ this -> config [ $ provider ] [ 'callback_route' ] , array ( 'provider' => $ provider , ) ) ; $ serviceName = $ this -> serviceMap [ $ provider ] ; $ storage = new SessionStorage ( false ) ; $ credentials = new ConsumerCredentials ( $ this -> config [ $ provider ] [ 'key' ] , $ this -> config [ $ provider ] [ 'secret' ] , $ redirect ) ; $ service = $ this -> serviceFactory -> createService ( $ serviceName , $ credentials , $ storage , $ this -> config [ $ provider ] [ 'scope' ] ) ; return $ service ; }
Get a provider service given a provider name

@param  string $provider
@return OAuth\Common\Service\ServiceInterface
Get a provider service given a provider name