Remove $_SERVER['PHP_SELF'] usage

This commit is contained in:
Philipp Holzer 2019-09-17 16:47:00 +02:00
parent 9582714089
commit b13dbb3dcb
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
9 changed files with 41 additions and 26 deletions

View file

@ -2,9 +2,11 @@
<?php
use Dice\Dice;
use Psr\Log\LoggerInterface;
require dirname(__DIR__) . '/vendor/autoload.php';
$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
$dice = $dice->addRule(LoggerInterface::class,['constructParams' => ['console']]);
(new Friendica\Core\Console($dice, $argv))->execute();