]> git.mxchange.org Git - friendica.git/blobdiff - bin/console.php
Improved RegExp
[friendica.git] / bin / console.php
index 9c25279d37222a77acb62a186b556761251dd6f6..a6513a2e8f992bdd52d5a8bfea7ff81e5c7e94ef 100755 (executable)
@@ -1,9 +1,12 @@
 #!/usr/bin/env php
 <?php
 
-include_once dirname(__DIR__) . '/boot.php';
+use Dice\Dice;
+use Psr\Log\LoggerInterface;
 
-$a = new Friendica\App(dirname(__DIR__));
-\Friendica\BaseObject::setApp($a);
+require dirname(__DIR__) . '/vendor/autoload.php';
 
-(new Friendica\Core\Console($argv))->execute();
+$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
+$dice = $dice->addRule(LoggerInterface::class,['constructParams' => ['console']]);
+
+(new Friendica\Core\Console($dice, $argv))->execute();