34 lines
864 B
PHP
34 lines
864 B
PHP
<?php
|
|
|
|
if (version_compare(phpversion(), '7.1', '>=')) {
|
|
ini_set('serialize_precision', -1);
|
|
}
|
|
|
|
require_once __DIR__.'/../vendor/autoload.php';
|
|
|
|
try {
|
|
(new Dotenv\Dotenv(__DIR__.'/../'))->load();
|
|
} catch (Dotenv\Exception\InvalidPathException $e) {
|
|
//
|
|
}
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Create The Application
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here we will load the environment and create the application instance
|
|
| that serves as the central piece of this framework. We'll use this
|
|
| application as an "IoC" container and router for this framework.
|
|
|
|
|
*/
|
|
|
|
$app = new Laravel\Lumen\Application(
|
|
realpath(__DIR__.'/../')
|
|
);
|
|
|
|
$app->register(App\Providers\AppServiceProvider::class);
|
|
$app->register(App\Providers\EventServiceProvider::class);
|
|
|
|
return $app;
|