Skip to content

Commit 8147f06

Browse files
committed
Fixed bug that default option cannot be loaded.
1 parent 993a18d commit 8147f06

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bin/hyperf.php

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

1717
! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
18+
1819
require BASE_PATH . '/vendor/autoload.php';
20+
1921
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', Hyperf\Engine\DefaultOption::hookFlags());
2022

2123
// Self-called anonymous function that creates its own scope and keep the global namespace clean.

installer/resources/bin/hyperf.stub

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ error_reporting(E_ALL);
99
date_default_timezone_set('%TIME_ZONE%');
1010

1111
! defined('BASE_PATH') && define('BASE_PATH', dirname(__DIR__, 1));
12-
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', Hyperf\Engine\DefaultOption::hookFlags());
1312

1413
require BASE_PATH . '/vendor/autoload.php';
1514

15+
! defined('SWOOLE_HOOK_FLAGS') && define('SWOOLE_HOOK_FLAGS', Hyperf\Engine\DefaultOption::hookFlags());
16+
1617
// Self-called anonymous function that creates its own scope and keep the global namespace clean.
1718
(function () {
1819
Hyperf\Di\ClassLoader::init();

0 commit comments

Comments
 (0)