Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 67203c6

Browse files
authored
Merge pull request #469 from kocoten1992/patch-1
feat: add hook action for http server
2 parents 5e80d23 + 7770f4a commit 67203c6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Commands/HttpServerCommand.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ public function handle()
7070
$this->checkEnvironment();
7171
$this->loadConfigs();
7272
$this->initAction();
73+
$this->hookAction();
7374
$this->runAction();
7475
}
7576

@@ -80,6 +81,14 @@ protected function loadConfigs()
8081
{
8182
$this->config = $this->laravel->make('config')->get('swoole_http');
8283
}
84+
85+
/**
86+
* Hook action
87+
*/
88+
protected function hookAction()
89+
{
90+
// custom hook task before starting server
91+
}
8392

8493
/**
8594
* Run action.

0 commit comments

Comments
 (0)