/** * Main script of the Zibo system * * Check Bootstrap.php to modify the base configuration */ use zibo\core\Zibo; use Exception; try { // include the bootstrap to initialize error handling, autoloader and // dependencies. it should also create $fileBrowser, $configIO and $environment require_once 'bootstrap.php'; // create an instance of Zibo $zibo = new Zibo($fileBrowser, $configIO); $zibo->setEnvironment($environment); $zibo->setDefaultTimeZone('Europe/Brussels'); $zibo->setDefaultLocale(array('en_IE.utf8', 'en_IE', 'en')); // run Zibo $zibo->bootModules(); $zibo->main(); } catch (Exception $exception) { // uncaught exception $class = get_class($exception); $message = $exception->getMessage(); $trace = $exception->getTraceAsString(); // try to log the exception try { if (isset($zibo)) { $zibo->triggerEvent(Zibo::EVENT_LOG, $class . ($message ? ': ' . $message : ''), $trace); } } catch (Exception $e) {