forked from grumpydevelop/federator

- added php-resque for queue job and worker support - removed all document_root dependencies (as that doesn't work in the queue-environment - added project_root global variable for more robust setup - some file-constistency fixed - config referring paths are now starting in project-root - inbox now does the heavy-duty on a queue
21 lines
616 B
PHP
21 lines
616 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2024 Sascha Nitsch (grumpydeveloper) https://contentnation.net/@grumpydevelop
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* @author Sascha Nitsch (grumpydeveloper)
|
|
**/
|
|
|
|
if (! array_key_exists('_call', $_REQUEST)) {
|
|
http_response_code(404);
|
|
exit();
|
|
}
|
|
date_default_timezone_set("Europe/Berlin");
|
|
spl_autoload_register(static function (string $className) {
|
|
include '../php/' . str_replace("\\", "/", strtolower($className)) . '.php';
|
|
});
|
|
define('PROJECT_ROOT', dirname(__DIR__, 1));
|
|
|
|
/// main instance
|
|
$contentnation = new \Federator\Api();
|
|
$contentnation->run();
|