Newer
Older
flow-task / server / App / App.php
@root root 20 days ago 438 bytes ---
<?php

namespace App;

class App {
	protected $router;
	protected $db_instance;

	public function db() {
		return $this -> db_instance;
	}

	public function __construct() {
		global $CNF;
		$this -> router = new \Kernel\Classes\Router();
		$this -> db_instance = new \Kernel\Classes\DB( $CNF["db"] );

		include "routes_map.php";
	}

	public function init() {
		init_routes_map($this -> router);
		echo $this -> router -> routing();
	}

}