示例#1
0
文件: Engine.php 项目: poitch/dokin
 public static function get_instance()
 {
     if (!self::$instance) {
         self::$instance = new Engine();
     }
     return self::$instance;
 }
示例#2
0
文件: fsm.php 项目: neel/bong
 public function edgeValid($url, $method)
 {
     if ($this->hasCurrent()) {
         if (Engine::instance()->hasState($url, $method)) {
             $current = $this->current();
             $requested = Engine::instance()->getState($url, $method);
             return $requested->from($current->url(), $current->method());
         }
         return false;
     }
     return false;
 }