function __construct() { parent::__construct(PROTOCOL . HTTP_HOST); if (!$this->mode) { if (isset($_REQUEST['openid_identifier'])) { $this->identity = $_REQUEST['openid_identifier']; $this->required = array('contact/email'); $this->optional = array('namePerson', 'namePerson/friendly'); header('Location: ' . $this->authUrl()); exit; } else { HTTP::redirectTo('index.php?code=4'); } } }
/** * 建構函式,呼叫父類別的建構函式,傳入host參數 */ public function __construct() { parent::__construct(app('request')->getHttpHost()); }
function __construct() { parent::__construct(); }