Switched to Composer for Index.

This commit is contained in:
flash 2023-10-21 14:35:09 +00:00
parent 997aebc735
commit ac021d7409
5 changed files with 124 additions and 9 deletions

View file

@ -1,7 +1,6 @@
<?php
namespace Uiharu;
use Index\Autoloader;
use Index\Environment;
use Index\Data\ConnectionFailedException;
use Index\Data\DbTools;
@ -12,15 +11,10 @@ define('UIH_DEBUG', is_file(UIH_ROOT . '/.debug'));
define('UIH_PUBLIC', UIH_ROOT . '/public');
define('UIH_SOURCE', UIH_ROOT . '/src');
define('UIH_LIBRARY', UIH_ROOT . '/lib');
define('UIH_VERSION', '20230609');
define('UIH_VERSION', '20231021');
define('UIH_NDX_PATH', UIH_LIBRARY . '/index');
define('UIH_NDX_PATH_DEV', UIH_LIBRARY . '/index-dev');
require_once UIH_ROOT . '/vendor/autoload.php';
require_once (UIH_DEBUG && is_dir(UIH_NDX_PATH_DEV) ? UIH_NDX_PATH_DEV : UIH_NDX_PATH) . '/index.php';
Autoloader::addNamespace('Masterminds', UIH_LIBRARY . '/html5-php/src');
Autoloader::addNamespace(__NAMESPACE__, UIH_SOURCE);
Environment::setDebug(UIH_DEBUG);
mb_internal_encoding('utf-8');