Skip to content

Commit 8084420

Browse files
authored
Adds DefaultOption::hookFlags (#98)
1 parent 9accba7 commit 8084420

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/hyperf.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
error_reporting(E_ALL);
1616

1717
! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
18-
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', SWOOLE_HOOK_ALL);
19-
2018
require BASE_PATH . '/vendor/autoload.php';
19+
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', Hyperf\Engine\DefaultOption::hookFlags());
2120

2221
// Self-called anonymous function that creates its own scope and keep the global namespace clean.
2322
(function () {

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"hyperf/command": "~3.0.0",
1818
"hyperf/config": "~3.0.0",
1919
"hyperf/db-connection": "~3.0.0",
20+
"hyperf/engine": "^2.10",
2021
"hyperf/framework": "~3.0.0",
2122
"hyperf/guzzle": "~3.0.0",
2223
"hyperf/http-server": "~3.0.0",

0 commit comments

Comments
 (0)