diff options
author | Thedro Neely <thedroneely@gmail.com> | 2019-01-21 07:06:37 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2019-01-21 07:06:37 -0500 |
commit | 2d28316ca7836cf79d8c6b570c63bb2f310b0f78 (patch) | |
tree | a3022a25720aba5906bc3661a26fc82f6c75dc76 /bootstrap/Bootstrap.php | |
parent | 43204f477968ca952dde75065c9ed76464c75c2c (diff) | |
download | edwinmattiacci.com-2d28316ca7836cf79d8c6b570c63bb2f310b0f78.tar.gz edwinmattiacci.com-2d28316ca7836cf79d8c6b570c63bb2f310b0f78.tar.bz2 edwinmattiacci.com-2d28316ca7836cf79d8c6b570c63bb2f310b0f78.zip |
bootstrap/Bootstrap: Allow multiple entry points
Diffstat (limited to 'bootstrap/Bootstrap.php')
-rw-r--r-- | bootstrap/Bootstrap.php | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/bootstrap/Bootstrap.php b/bootstrap/Bootstrap.php index 2754a1d..05a3597 100644 --- a/bootstrap/Bootstrap.php +++ b/bootstrap/Bootstrap.php @@ -1,13 +1,19 @@ <?php -/* composer autoloader */ -require '../vendor/autoload.php'; +/* composer autoload */ +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/vendor/autoload.php'; -/* core functions */ -require '../bootstrap/Functions.php'; +/* source functions */ +require $_SERVER['DOCUMENT_ROOT'] . '/..' . '/bootstrap/Functions.php'; /* source config file */ -$config = include '../AppConfig.php'; +$config = include $_SERVER['DOCUMENT_ROOT'] . '/..' . '/AppConfig.php'; -/* database query setup */ +/* database connect */ $contact['database'] = new QueryBuilder(Connection::make($config['database'])); + +/* create new router */ +$router = new Router; + +/* create new router */ +$navigator = new Navigator; |