//creating some objects like database,session, loader etc here.
//loading routes
$route = new Lib\Route(ROOT_PATH . DIRECTORY_SEPARATOR . 'routes.php');
//matching current route
//mapping to a class, and a method to run
$route->digRoutes();
$class = $route->getClass();
//creating user, i will need this whole app
$user = new App\User($session, $db, $validator);
if (class_exists($class)) {
if ($route->getResponde() === 'html') {
$template = new Lib\Template('Temp');
$app = new $class($user, new App\News($db), $template);