Skip to content

Commit 441e3ce

Browse files
committed
update hook
1 parent c7c55c4 commit 441e3ce

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bin/simps.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66

77
error_reporting(E_ALL);
88

9-
! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
10-
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL);
11-
! defined('CONFIG_PATH') && define('CONFIG_PATH', dirname(__DIR__) . '/config/');
9+
!defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
10+
!defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL);
11+
!defined('CONFIG_PATH') && define('CONFIG_PATH', dirname(__DIR__) . '/config/');
1212

1313
require BASE_PATH . '/vendor/autoload.php';
1414

15+
\Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_FLAGS);
16+
1517
Simps\Application::run();

0 commit comments

Comments
 (0)