mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Using method-chaining for DICE
This commit is contained in:
parent
a66580444f
commit
9682cc440c
9 changed files with 27 additions and 25 deletions
|
@ -15,9 +15,9 @@ class DBStructureTest extends DatabaseTest
|
|||
{
|
||||
parent::setUp();
|
||||
|
||||
$dice = new Dice();
|
||||
$dice = $dice->addRules(include __DIR__ . '/../../../static/dependencies.config.php');
|
||||
$dice = $dice->addRule(Database::class, ['instanceOf' => StaticDatabase::class, 'shared' => true]);
|
||||
$dice = (new Dice())
|
||||
->addRules(include __DIR__ . '/../../../static/dependencies.config.php')
|
||||
->addRule(Database::class, ['instanceOf' => StaticDatabase::class, 'shared' => true]);
|
||||
BaseObject::setDependencyInjection($dice);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue