/** * * @param Simplify\Application $app * @return \Simplify\Application */ public static function app(Simplify\Application $app = null) { if (!empty($app)) { self::$app = $app; } elseif (!self::$app) { self::$app = new Simplify\Application(); } return self::$app; }
<?php define('SY_APP_DIR', preg_replace('#[\\\\/]+#', '/', __DIR__ . '/')); require_once 'vendor/autoload.php'; Simplify::app()->dispatch();