File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 11<?php
2-
32declare (strict_types=1 );
3+
44/**
55 * This file is part of Hyperf.
66 *
1010 * @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
1111 */
1212
13+ use Hyperf \Contract \ApplicationInterface ;
14+ use Swoole \Runtime ;
15+
16+ ini_set ('display_errors ' , 'on ' );
17+ ini_set ('display_startup_errors ' , 'on ' );
18+
1319error_reporting (E_ALL );
20+ date_default_timezone_set ('Asia/Shanghai ' );
21+
22+ !defined ('BASE_PATH ' ) && define ('BASE_PATH ' , dirname (__DIR__ , 1 ));
1423
15- ! defined ( ' BASE_PATH ' ) && define ( ' BASE_PATH ' , dirname ( __DIR__ , 1 ) );
24+ Runtime:: enableCoroutine ( true );
1625
17- \ Swoole \Runtime:: enableCoroutine ( true ) ;
26+ require BASE_PATH . ' /vendor/autoload.php ' ;
1827
19- require BASE_PATH . ' /vendor/autoload .php ' ;
28+ $ container = require BASE_PATH . ' /config/container .php ' ;
2029
21- require BASE_PATH . ' /config/ container.php ' ;
30+ $ container-> get (ApplicationInterface::class) ;
You can’t perform that action at this time.
0 commit comments