Revert node.config.php into Config table

This commit is contained in:
Philipp
2023-02-05 00:15:01 +01:00
parent 6db89adc04
commit 513ef03421
27 changed files with 425 additions and 829 deletions

View File

@@ -37,9 +37,24 @@ abstract class DI
/** @var Dice */
private static $dice;
public static function init(Dice $dice)
public static function init(Dice $dice, bool $disableDepByHand = false)
{
self::$dice = $dice;
if (!$disableDepByHand) {
self::setCompositeRootDependencyByHand();
}
}
/**
* I HATE this method, but everything else needs refactoring at the database itself
*
* @return void
*/
public static function setCompositeRootDependencyByHand()
{
$database = static::dba();
$database->setDependency(static::config(), static::profiler(), static::logger());
}
/**