OpenXE/www/api/index.php
2021-05-21 08:49:41 +02:00

21 lines
558 B
PHP

<?php
ini_set('display_errors', false);
error_reporting(E_ERROR);
require dirname(dirname(__DIR__)) . '/xentral_autoloader.php';
require dirname(dirname(__DIR__)) . '/vendor/autoload.php';
define('DEBUG_MODE', false);
$errorHandler = new \Xentral\Modules\Api\Error\ErrorHandler();
$errorHandler->register();
/** @var \Xentral\Modules\Api\Engine\ApiContainer $container */
$container = include __DIR__ . '/bootstrap.php';
$application = new \Xentral\Modules\Api\Engine\ApiApplication($container);
$response = $application->handle();
$response->send();