original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Get a provider service given a provider name
  
  @param  string $provider
  @return OAuth\Common\Service\ServiceInterface
docstring_tokens: Get a provider service given a provider name