static function sharedInstance() { if (is_null(self::$sharedInstance)) { self::$sharedInstance = new self(); } return self::$sharedInstance; }
static function init() { self::$text = Text::sharedInstance(); self::$route = Route::sharedInstance(); self::$database = Database::sharedInstance(); self::$view = View::sharedInstance(); }
function __construct() { $this->db = Database::sharedInstance(); }