예제 #1
0
 private function __construct()
 {
     $this->setGet($_GET);
     $this->setPost($_POST);
     $this->setCookies($_COOKIE);
     $this->setSession($_SESSION);
     $this->setMethod(strtolower($_SERVER['REQUEST_METHOD']));
     $this->identity = Identity::getInstance();
 }
예제 #2
0
 public function __construct()
 {
     $this->dbContext = new DbContext();
     $this->context = HttpContext::getInstance();
     $this->identity = Identity::getInstance();
     if ($this->identity->isAuthorised()) {
         $this->getInvites();
     }
     $this->onInit();
 }
예제 #3
0
 public function __construct()
 {
     $this->identity = Identity::getInstance();
 }