Create constant CORE_PATH and rework project loaders

This commit is contained in:
2021-01-27 12:22:12 +03:00
parent 04e766af45
commit 23cb69919c
5 changed files with 10 additions and 8 deletions

View File

@@ -1,9 +1,11 @@
<?php
require_once __DIR__.'/../../../vendor/autoload.php';
define('CORE_PATH', __DIR__.'/../../../..');
require_once CORE_PATH . '/vendor/autoload.php';
(new Laravel\Lumen\Bootstrap\LoadEnvironmentVariables(
dirname(__DIR__) . '/../../../'
CORE_PATH . '/'
))->bootstrap();
date_default_timezone_set(env('APP_TIMEZONE', 'UTC'));