public static function create($id = "HttpSession") { if ($id == "HttpSession") { return HttpSession::getInstance(); } $messenger = MessengerFactory::create(); $messenger->say('Null Filter'); }
public static function create($id = "Paginator") { if ($id == "Paginator") { return new Paginator(HttpSession::getInstance()); } $messenger = MessengerFactory::create(); $messenger->say('Null Paginator'); }
/** * Returns the session * * @return \http\HttpSession */ public function getSession() { if ($this->session === null) { $this->session = HttpSession::getInstance(); } return $this->session; }