Skip to content

Commit 702bffd

Browse files
committed
Update bootstrap.php
1 parent 96865a1 commit 702bffd

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/bootstrap.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
2-
declare(strict_types=1);
32

3+
declare(strict_types=1);
44
/**
55
* This file is part of Hyperf.
66
*
@@ -10,19 +10,18 @@
1010
* @license https://github.com/hyperf-cloud/hyperf/blob/master/LICENSE
1111
*/
1212

13-
use Hyperf\Contract\ApplicationInterface;
14-
use Swoole\Runtime;
15-
1613
ini_set('display_errors', 'on');
1714
ini_set('display_startup_errors', 'on');
1815

1916
error_reporting(E_ALL);
2017
date_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);

0 commit comments

Comments
 (0)