forked from YetiForceCompany/YetiForcePortal2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
31 lines (27 loc) · 839 Bytes
/
index.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
25
26
27
28
29
30
31
<?php
/**
* Main file.
*
* @copyright YetiForce Sp. z o.o.
* @license YetiForce Public License 4.0 (licenses/LicenseEN.txt or yetiforce.com)
* @author Mariusz Krzaczkowski <[email protected]>
*/
if (!\defined('ROOT_DIRECTORY')) {
\define('ROOT_DIRECTORY', __DIR__);
}
if (!\defined('PUBLIC_DIRECTORY')) {
\define('PUBLIC_DIRECTORY', 'public_html/');
}
if (!file_exists(ROOT_DIRECTORY . '/vendor/autoload.php')) {
echo 'Please install dependencies via composer install.';
return;
}
require_once ROOT_DIRECTORY . '/vendor/autoload.php';
set_error_handler(['\\App\\Controller\\Base', 'exceptionErrorHandler']);
\App\Session::init();
\App\Process::$startTime = microtime(true);
\App\Cache::init();
\App\Log::init();
\App\Process::init();
$coreUI = new \App\WebUI();
$coreUI->process(new \App\Request($_REQUEST));