Skip to content

Commit

Permalink
Fixed crontab does not works when using coroutine style server. (#2590)
Browse files Browse the repository at this point in the history
* Added PHPDOc.

* Fixed crontab does not works when using coroutine style server.
  • Loading branch information
limingxinleo committed Sep 27, 2020
1 parent 910c11b commit 02eb7c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ProcessInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
*/
namespace Hyperf\Contract;

use Swoole\Coroutine\Http\Server as CoHttpServer;
use Swoole\Coroutine\Server as CoServer;
use Swoole\Server;

interface ProcessInterface
{
/**
* Create the process object according to process number and bind to server.
* @param CoServer|Server $server
* @param CoHttpServer|CoServer|Server $server
*/
public function bind($server): void;

Expand Down

0 comments on commit 02eb7c2

Please sign in to comment.