/** * Adds default route to router pool * @param $callable */ function otherwise($callable) { Router::getInstance()->otherwise($callable); }
<?php use app\core\router\Router; require_once "app/loader.php"; $router = Router::getInstance(); $router->run();