Skip to content

Commit

Permalink
Adds DefaultOption::hookFlags (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanyanwow authored Jul 14, 2023
1 parent 7fe486d commit 9b27b29
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/vendor/
composer.lock
*.cache
*.log
*.log
.idea/*
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"require": {
"php": ">=8.0",
"hyperf/engine-contract": "~1.8.0"
"hyperf/engine-contract": "~1.9.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "2.9-dev"
"dev-master": "2.10-dev"
},
"hyperf": {
"config": "Hyperf\\Engine\\ConfigProvider"
Expand All @@ -63,4 +63,4 @@
"analyse": "phpstan analyse --memory-limit 1024M -l 0 ./src",
"cs-fix": "php-cs-fixer fix $1"
}
}
}
22 changes: 22 additions & 0 deletions src/DefaultOption.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

declare(strict_types=1);
/**
* This file is part of Hyperf.
*
* @link https://www.hyperf.io
* @document https://hyperf.wiki
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/
namespace Hyperf\Engine;

use Hyperf\Engine\Contract\DefaultOptionInterface;

class DefaultOption implements DefaultOptionInterface
{
public static function hookFlags(): int
{
return SWOOLE_HOOK_ALL;
}
}

0 comments on commit 9b27b29

Please sign in to comment.