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