dep: compose dependency
This commit is contained in:
+5
-9
@@ -8,28 +8,24 @@
|
||||
],
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "8.0"
|
||||
"php": "8.1"
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"brandonwamboldt/utilphp": "^1.1",
|
||||
"sergeytsalkov/meekrodb": "^2.3",
|
||||
"league/plates": "^3.3",
|
||||
"guzzlehttp/guzzle": "^6.3",
|
||||
"monolog/monolog": "^1.23",
|
||||
"firephp/firephp-core": "^0.4.0",
|
||||
"vlucas/valitron": "^1.4",
|
||||
"php-extended/php-tail": "^2.1",
|
||||
"pguardiario/phpuri": "^1.0",
|
||||
"symfony/lock": "^4.1",
|
||||
"symfony/lock": "^6.0",
|
||||
"ezyang/htmlpurifier": "^4.10",
|
||||
"xemlock/htmlpurifier-html5": "^0.1.7",
|
||||
"catfan/medoo": "^1.5",
|
||||
"catfan/medoo": "^2.1",
|
||||
"phan/phan": "^5.3",
|
||||
"erusev/parsedown-extra": "^0.8.1",
|
||||
"nette/caching": "^3.0",
|
||||
"illuminate/database": "^8.61",
|
||||
"illuminate/events": "^8.61",
|
||||
"illuminate/database": "^9.12",
|
||||
"illuminate/events": "^9.12",
|
||||
"spatie/data-transfer-object": "^3.7",
|
||||
"php-ds/php-ds": "^1.4"
|
||||
},
|
||||
|
||||
Generated
+568
-1322
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+2
-1
@@ -96,7 +96,8 @@ function logError(string $err, string $errstr, string $errpath, array $trace)
|
||||
$fdb = FileDB::db(ROOT . '/d_log/err_log.sqlite3', ROOT . '/f_install/sql/err_log.sql');
|
||||
$date = date("Ymd_His");
|
||||
|
||||
$err =str_replace(ROOT, '{ROOT}', $errpath);
|
||||
$err = str_replace(ROOT, '{ROOT}', $err);
|
||||
$errstr = str_replace(ROOT, '{ROOT}', $errstr);
|
||||
$errpath = str_replace(ROOT, '{ROOT}', $errpath);
|
||||
$trace = array_map(function (string $text) {
|
||||
return str_replace(ROOT, '{ROOT}', $text);
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace sammo;
|
||||
|
||||
use Monolog\Logger;
|
||||
use sammo\Enums\InheritanceKey;
|
||||
use sammo\Enums\RankColumn;
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ class FileDB{
|
||||
public static function db(string $path, ?string $schemaPath = null) : Medoo{
|
||||
//Note: reference count 적용. MySQL의 것과 다르게 동작함.
|
||||
$db = new Medoo([
|
||||
'database_type' => 'sqlite',
|
||||
'database_file' => $path
|
||||
'type' => 'sqlite',
|
||||
'database' => $path
|
||||
]);
|
||||
if($schemaPath){
|
||||
$db->query(\file_get_contents($schemaPath));
|
||||
|
||||
Reference in New Issue
Block a user