Skip to content

Commit 8ed52a6

Browse files
sy-recordsdeminy
andauthored
Fix missing helper options (#123)
* Fix missing helper options * make Composer scripts backward-compatible Co-authored-by: Demin Yin <[email protected]>
1 parent 2ee7a64 commit 8ed52a6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@
6262
"cs-fix": "/usr/bin/env php -d swoole.enable_library=Off ./vendor/bin/php-cs-fixer fix",
6363
"test": "/usr/bin/env php -d swoole.enable_library=Off ./vendor/bin/phpunit",
6464
"post-install-cmd" : [
65-
"rm -rf ./vendor/swoole/ide-helper/output/swoole_library"
65+
"rm -rf ./vendor/swoole/ide-helper/src/swoole_library ./vendor/swoole/ide-helper/output/swoole_library"
6666
],
6767
"post-update-cmd" : [
68-
"rm -rf ./vendor/swoole/ide-helper/output/swoole_library"
68+
"rm -rf ./vendor/swoole/ide-helper/src/swoole_library ./vendor/swoole/ide-helper/output/swoole_library"
6969
]
7070
}
7171
}

src/core/Constant.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,5 +439,11 @@ class Constant
439439

440440
public const OPTION_DEADLOCK_CHECK_DEPTH = 'deadlock_check_depth';
441441

442+
public const OPTION_STATS_FILE = 'stats_file';
443+
444+
public const OPTION_STATS_TIMER_INTERVAL = 'stats_timer_interval';
445+
446+
public const OPTION_ADMIN_SERVER = 'admin_server';
447+
442448
/* }}} OPTION */
443449
}

0 commit comments

Comments
 (0)