XBackBone/index.php

12 lines
441 B
PHP
Raw Normal View History

2018-04-28 12:20:07 +00:00
<?php
2019-11-20 17:49:31 +00:00
2022-06-19 21:29:59 +00:00
((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 3) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.3 or above is required to run XBackBone.');
2019-11-20 17:49:31 +00:00
require __DIR__.'/vendor/autoload.php';
2018-04-28 12:20:07 +00:00
2019-11-20 17:49:31 +00:00
define('BASE_DIR', realpath(__DIR__).DIRECTORY_SEPARATOR);
2018-04-28 12:20:07 +00:00
define('PLATFORM_VERSION', json_decode(file_get_contents('composer.json'))->version);
2020-09-26 18:53:07 +00:00
define('CONFIG_FILE', BASE_DIR.'config.php');
2018-04-28 12:20:07 +00:00
2021-07-31 11:09:45 +00:00
$app = require __DIR__.'/bootstrap/app.php';
2018-11-11 16:02:50 +00:00
$app->run();