friendica/bin/console.php

25 wiersze
548 B
PHP
Czysty Zwykły widok Historia

2018-03-18 17:26:51 +00:00
#!/usr/bin/env php
2018-03-18 09:12:39 +00:00
<?php
/**
* Copyright (C) 2010-2024, the Friendica project
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*
*/
2018-03-18 09:12:39 +00:00
if (php_sapi_name() !== 'cli') {
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit();
}
2019-08-05 07:02:55 +00:00
use Dice\Dice;
require dirname(__DIR__) . '/vendor/autoload.php';
2018-03-18 09:12:39 +00:00
$dice = (new Dice())->addRules(require(dirname(__DIR__) . '/static/dependencies.config.php'));
$app = \Friendica\App::fromDice($dice);
$app->processConsole($_SERVER['argv'] ?? []);