Ejemplo n.º 1
0
 /**
  * Create service
  *
  * @param ServiceLocatorInterface $serviceLocator
  *
  * @return mixed
  */
 public function createService(ServiceLocatorInterface $serviceLocator)
 {
     $me = new \ZendOAuth2\Client\Google();
     $cf = $serviceLocator->get('Config');
     $me->setOptions(new \ZendOAuth2\ClientOptions($cf['zendoauth2']['google']));
     return $me;
 }
Ejemplo n.º 2
0
 public function getClient()
 {
     $me = new \ZendOAuth2\Client\Google();
     $cf = Bootstrap::getServiceManager()->get('Config');
     $me->setOptions(new \ZendOAuth2\ClientOptions($cf['zendoauth2']['google']));
     return $me;
 }