*/ define('SCRATCH_VERSION', '0.2'); require 'includes.php'; function exceptionHandler($ex) { Scratch::singleton()->exceptionHandler($ex); } /** * Launcher class, the initial class used to invoke the framework */ class Launcher { public static $application; /** * Invokes the framework, application and object setup. * @return void */ public static function invoke() { // find the route // invoke the controller // invoke the action // invoke the view self::$application = Scratch::singleton(); } } /** * Invoke the launcher to start the framework */ Launcher::invoke();