app() 공개 정적인 메소드

public static app ( ) : Engine
리턴 flight\Engine Application instance
예제 #1
0
파일: Flight.php 프로젝트: mikecao/flight
 /**
  * Handles calls to static methods.
  *
  * @param string $name Method name
  * @param array $params Method parameters
  * @return mixed Callback results
  * @throws \Exception
  */
 public static function __callStatic($name, $params)
 {
     $app = Flight::app();
     return \flight\core\Dispatcher::invokeMethod(array($app, $name), $params);
 }