forked from spiral/app-keeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.php
38 lines (29 loc) · 748 Bytes
/
app.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
/**
* This file is part of Spiral package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
use App\App;
//
// If you forgot to configure some of this in your php.ini file,
// then don't worry, we will set the standard environment
// settings for you.
//
mb_internal_encoding('UTF-8');
error_reporting(E_ALL | E_STRICT);
ini_set('display_errors', 'stderr');
//
// Register Composer's auto loader.
//
require __DIR__ . '/vendor/autoload.php';
//
// Initialize shared container, bindings, directories and etc.
//
$app = App::init(['root' => __DIR__]);
if ($app !== null) {
$code = (int)$app->serve();
exit($code);
}