コード例 #1
0
 public static function create($id = "HttpSession")
 {
     if ($id == "HttpSession") {
         return HttpSession::getInstance();
     }
     $messenger = MessengerFactory::create();
     $messenger->say('Null Filter');
 }
コード例 #2
0
 public static function create($id = "Paginator")
 {
     if ($id == "Paginator") {
         return new Paginator(HttpSession::getInstance());
     }
     $messenger = MessengerFactory::create();
     $messenger->say('Null Paginator');
 }
コード例 #3
0
ファイル: HttpContext.php プロジェクト: elgervb/php-http
 /**
  * Returns the session
  *
  * @return \http\HttpSession
  */
 public function getSession()
 {
     if ($this->session === null) {
         $this->session = HttpSession::getInstance();
     }
     return $this->session;
 }