aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/Bootstrap.php
blob: 4e10f4888a8287b84531f586e9fa97591ac615b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

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

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

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

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

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

/* create navigator */
$navigation = new Navigation();

/* create new theme */
$theme = new Theme;

/* enable dark and light themes */
$theme->toggle();