public static function __callStatic($name, $params) { static $initialized = FALSE; if ($initialized === FALSE) { self::$engine = new \mifan\Engine(); $initialized = TRUE; } return \mifan\core\Dispatcher::execute(array(self::$engine, $name), $params); }
<?php require "mifan/Mifan.php"; Mifan::route("/", function () { echo "hello world!"; }); Mifan::start();