示例#1
0
文件: Http.php 项目: reoring/sabel
 public static function create()
 {
     if (self::$instance === null) {
         self::$instance = new self();
     }
     return self::$instance;
 }
示例#2
0
 public static function create()
 {
     if (strtolower(PHP_SAPI) === "cli") {
         return Sabel_Cookie_InMemory::create();
     } else {
         return Sabel_Cookie_Http::create();
     }
 }
示例#3
0
文件: Factory.php 项目: reoring/sabel
 public static function create()
 {
     if (is_cli()) {
         return Sabel_Cookie_InMemory::create();
     } else {
         return Sabel_Cookie_Http::create();
     }
 }