File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 11<?php
2- declare (strict_types=1 );
32
3+ declare (strict_types=1 );
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-
1613ini_set ('display_errors ' , 'on ' );
1714ini_set ('display_startup_errors ' , 'on ' );
1815
1916error_reporting (E_ALL );
2017date_default_timezone_set ('Asia/Shanghai ' );
2118
22- !defined ('BASE_PATH ' ) && define ('BASE_PATH ' , dirname (__DIR__ , 1 ));
19+ ! defined ('BASE_PATH ' ) && define ('BASE_PATH ' , dirname (__DIR__ , 1 ));
20+
21+ Swoole \Runtime::enableCoroutine (true );
2322
24- require BASE_PATH . '/vendor/autoload.php ' ;
23+ require BASE_PATH . '/vendor/autoload.php ' ;
2524
26- $ container = require BASE_PATH . '/config/container.php ' ;
25+ $ container = require BASE_PATH . '/config/container.php ' ;
2726
28- $ container ->get (ApplicationInterface::class);
27+ $ container ->get (Hyperf \ Contract \ ApplicationInterface::class);
You can’t perform that action at this time.
0 commit comments