Core MVC, HTTP client, Session, Cookie, Config, HTTPException — 111 PHPUnit tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
35 lines
667 B
PHP
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('MMH_ENV'))
|
|
{
|
|
Core::$environment = Core::getConst(strtoupper(getenv('MMH_ENV')));
|
|
}
|
|
|
|
Core::init();
|
|
|
|
echo Request::factory()->execute()->body();
|