Bicycle/index.php
Egor Isaev b65603b4d0 dev
2026-06-23 10:44:18 +03:00

35 lines
667 B
PHP

<?php
/**
* @package Bicycle
* @author Egor Isaev
* @description index.php
* @copyright (c) 03/06/2026
*/
use System\Classes\Core;
use System\Classes\Request;
const EXT = '.php';
error_reporting(E_ALL);
ini_set('display_errors', '1');
define("DOCROOT", realpath(__DIR__));
define('APPPATH', realpath('App'));
define('SYSPATH', realpath('System'));
date_default_timezone_set('Europe/Moscow');
setlocale(LC_ALL, 'ru_RU.UTF-8', 'Rus');
require_once DOCROOT . '/vendor/autoload.php';
if (getenv('APP_ENV'))
{
Core::$environment = Core::getConst(strtoupper(getenv('APP_ENV')));
}
Core::init();
echo Request::factory()->execute()->body();