Revert node.config.php into Config table
This commit is contained in:
parent
6db89adc04
commit
513ef03421
27 changed files with 425 additions and 829 deletions
17
src/DI.php
17
src/DI.php
|
|
@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue