aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/Bootstrap.php
blob: 05a3597d34fd6b80bc1bda5631428d60422101be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/* composer autoload */
require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/vendor/autoload.php';

/* source functions */
require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Functions.php';

/* source config file */
$config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php';

/* database connect */
$contact['database'] = new QueryBuilder(Connection::make($config['database']));

/* create new router */
$router = new Router;

/* create new router */
$navigator = new Navigator;