Using method-chaining for DICE
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use Dice\Dice;
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
||||
$dice = new \Dice\Dice();
|
||||
$dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php');
|
||||
$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
|
||||
|
||||
(new Friendica\Core\Console($dice, $argv))->execute();
|
||||
|
||||
Reference in New Issue
Block a user