friendica-github/bin/console.php

23 lines
519 B
PHP
Raw Normal View History

2018-03-18 13:26:51 -04:00
#!/usr/bin/env php
2018-03-18 05:12:39 -04: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 05:12:39 -04:00
if (php_sapi_name() !== 'cli') {
header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden');
exit();
}
require dirname(__DIR__) . '/vendor/autoload.php';
2018-03-18 05:12:39 -04:00
$container = \Friendica\Core\Container::fromBasePath(dirname(__DIR__));
2025-01-08 22:20:06 +00:00
$app = \Friendica\App::fromContainer($container);
$app->processConsole($_SERVER['argv'] ?? []);