示例#1
0
 protected function init()
 {
     if (!\GO::config()->debug) {
         throw new \Exception("Developer controller can only be accessed in debug mode");
     }
     return parent::init();
 }
示例#2
0
 protected function checkSecurityToken()
 {
     if ($this->getAction() == 'callback') {
         return true;
     }
     return parent::checkSecurityToken();
 }
示例#3
0
 protected function checkSecurityToken()
 {
     if ($this->getAction() != 'connect') {
         return parent::checkSecurityToken();
     } else {
         return true;
     }
 }
示例#4
0
 protected function init()
 {
     $this->view = new JsonView();
     parent::init();
 }