]> git.mxchange.org Git - friendica.git/blobdiff - bin/worker.php
Introduce DICE
[friendica.git] / bin / worker.php
index 2b5915f471d4fc76b9fdfdee1bad2ff42318cea0..f4b012026853e2bda7d73ed5a89dfd15eb019253 100755 (executable)
@@ -30,7 +30,10 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
 
 require dirname(__DIR__) . '/vendor/autoload.php';
 
-$a = Factory\DependencyFactory::setUp('worker', dirname(__DIR__));
+$dice = new \Dice\Dice();
+$dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php');
+
+$a = Factory\DependencyFactory::setUp('worker', $dice);
 
 // Check the database structure and possibly fixes it
 Update::check($a->getBasePath(), true, $a->getMode());