forked from novosga/novosga
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.php
24 lines (21 loc) · 854 Bytes
/
bootstrap.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$autoload = __DIR__.'/vendor/autoload.php';
if (!file_exists($autoload)) {
echo '<h1>Novo SGA</h1>
<p>Por favor execute <strong>composer.phar install</strong> primeiro.</p>
<p>Please run <strong>composer.phar install</strong> fisrt.</p>';
exit();
}
define('DS', DIRECTORY_SEPARATOR);
define('NOVOSGA_DEV', false);
define('NOVOSGA_ROOT', __DIR__);
define('VENDOR_DIR', __DIR__.DS.'vendor');
define('NOVOSGA_CONFIG', NOVOSGA_ROOT.DS.'config');
define('NOVOSGA_LOG', NOVOSGA_ROOT.DS.'var/log');
define('NOVOSGA_CACHE', NOVOSGA_ROOT.DS.'var/cache');
define('NOVOSGA_PUBLIC', NOVOSGA_ROOT.DS.'public');
define('NOVOSGA_TEMPLATES', NOVOSGA_ROOT.DS.'templates');
define('NOVOSGA_LOCALE_DIR', NOVOSGA_ROOT.DS.'locales');
define('MODULES_DIR', 'modules');
define('MODULES_PATH', NOVOSGA_ROOT.DS.MODULES_DIR);
$loader = require $autoload;