Compare commits

...

2 commits

Author SHA1 Message Date
flash 514e0068a2 Updated to PHP 8.2 and use Composer for Index. 2023-10-18 10:40:21 +00:00
flash bda2b11eb5 Removed Index submodule. 2023-10-18 10:36:20 +00:00
7 changed files with 3232 additions and 10 deletions

1
.gitignore vendored
View file

@ -5,3 +5,4 @@
/lib/index-dev
/.debug
/config/config.ini
/vendor

3
.gitmodules vendored
View file

@ -1,3 +0,0 @@
[submodule "lib/index"]
path = lib/index
url = https://git.flash.moe/flash/index.git

35
composer.json Normal file
View file

@ -0,0 +1,35 @@
{
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"flashwave/index": "dev-master",
"flashwave/sasae": "dev-master",
"chillerlan/php-qrcode": "^4.3",
"symfony/mailer": "^6.0",
"matomo/device-detector": "^6.1",
"sentry/sdk": "^3.5"
},
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"Hanyuu\\": "src"
}
},
"scripts": {
"post-install-cmd": [
"./tools/migrate"
]
},
"config": {
"preferred-install": "dist",
"allow-plugins": {
"composer/installers": true,
"php-http/discovery": true
}
},
"require-dev": {
"phpstan/phpstan": "^1.10"
}
}

3194
composer.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -13,17 +13,12 @@ define('HAU_CLI', PHP_SAPI === 'cli');
define('HAU_DEBUG', is_file(HAU_ROOT . '/.debug'));
define('HAU_DIR_PUBLIC', HAU_ROOT . '/public');
define('HAU_DIR_SOURCE', HAU_ROOT . '/src');
define('HAU_DIR_LIBRARIES', HAU_ROOT . '/lib');
define('HAU_DIR_CONFIG', HAU_ROOT . '/config');
define('HAU_DIR_MIGRATIONS', HAU_ROOT . '/database');
define('HAU_DIR_TEMPLATES', HAU_ROOT . '/templates');
define('HAU_NDX_PATH', HAU_DIR_LIBRARIES . '/index');
define('HAU_NDX_PATH_DEV', HAU_DIR_LIBRARIES . '/index-dev');
require_once HAU_ROOT . '/vendor/autoload.php';
require_once (HAU_DEBUG && is_dir(HAU_NDX_PATH_DEV) ? HAU_NDX_PATH_DEV : HAU_NDX_PATH) . '/index.php';
Autoloader::addNamespace(__NAMESPACE__, HAU_DIR_SOURCE);
Environment::setDebug(HAU_DEBUG);
mb_internal_encoding('utf-8');

@ -1 +0,0 @@
Subproject commit bce5ba77a268ecd6338d0e3520e41ff4c40cbeda

View file

@ -22,6 +22,7 @@ class HanyuuContext {
private IUsers $users;
private Auth $auth;
private ?TemplateContext $tpl = null;
private ?IRouter $router = null;
public function __construct(IConfig $config, IDbConnection $dbConn) {
$this->config = $config;