friendica/bin/console.php

13 lines
350 B
PHP
Raw Normal View History

2018-03-18 17:26:51 +00:00
#!/usr/bin/env php
2018-03-18 09:12:39 +00:00
<?php
2019-08-05 07:02:55 +00:00
use Dice\Dice;
2019-09-17 14:47:00 +00:00
use Psr\Log\LoggerInterface;
2019-08-05 07:02:55 +00:00
require dirname(__DIR__) . '/vendor/autoload.php';
2018-03-18 09:12:39 +00:00
2019-08-05 07:02:55 +00:00
$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
2019-09-17 14:47:00 +00:00
$dice = $dice->addRule(LoggerInterface::class,['constructParams' => ['console']]);
(new Friendica\Core\Console($dice, $argv))->execute();