/** * Constructeur * * @return \sJo\Loader\Loader */ public function __construct() { self::$root = realpath(dirname(__DIR__)); /** Load Settings */ Lib\Ini::load()->file(self::$root . '/settings.default.ini')->toDefine(); if (defined('SJO_TIMEZONE')) { date_default_timezone_set(SJO_TIMEZONE); } /** Locale */ $sJo_I18n = new Lib\I18n(); $sJo_I18n->load('default', self::$root . '/Locale'); /** Router */ $this->router = new Router($this); /** Alert */ $this->alert = new Alert(); /** App autoload */ Helpers\Autoload(SJO_ROOT_APP); /** Bootstrap */ File::__include(SJO_ROOT_APP . '/' . Router::$interface . '/bootstrap.php'); /** Load modules */ $this->module = new Module(); }