Beispiel #1
0
 public function run()
 {
     if (!$this->route) {
         $this->route = $this->controller->module ? $this->controller->module->id . '/' . $this->controller->id : $this->controller->id . '/oauth';
     }
     $endpoint_url = Yii::app()->createAbsoluteUrl($this->route);
     $this->endPointUrl = $endpoint_url;
     require_once dirname(__FILE__) . '/models/UserOAuth.php';
     $this->configPath = UserOAuth::getConfigPath();
     $this->controller->renderText($this->getForm($this->configPath, $this->endPointUrl));
     Yii::app()->end();
 }
 public function run()
 {
     $path = dirname(__FILE__);
     if (!$this->route) {
         $endpoint_url = $this->controller->module ? $this->controller->module->id . '/' . $this->controller->id : $this->controller->id;
     } else {
         $endpoint_url = $this->route;
     }
     $endpoint_url = Yii::app()->createAbsoluteUrl($endpoint_url . '/oauth');
     require_once dirname(__FILE__) . '/models/UserOAuth.php';
     $config_path = UserOAuth::getConfigPath();
     include $path . '/hybridauth/install.php';
     Yii::app()->end();
 }