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