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(); }
public function __construct() { $this->dbContext = new DbContext(); $this->context = HttpContext::getInstance(); $this->identity = Identity::getInstance(); if ($this->identity->isAuthorised()) { $this->getInvites(); } $this->onInit(); }
public function __construct() { $this->identity = Identity::getInstance(); }