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