|
|
@ -0,0 +1,32 @@ |
|
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1); |
|
|
|
|
|
/** |
|
|
|
|
|
* This file is part of Hyperf. |
|
|
|
|
|
* |
|
|
|
|
|
* @link https://www.hyperf.io |
|
|
|
|
|
* @document https://doc.hyperf.io |
|
|
|
|
|
* @contact group@hyperf.io |
|
|
|
|
|
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE |
|
|
|
|
|
*/ |
|
|
|
|
|
namespace App\Listener; |
|
|
|
|
|
|
|
|
|
|
|
use Hyperf\Event\Contract\ListenerInterface; |
|
|
|
|
|
use Hyperf\Framework\Event\MainWorkerStart; |
|
|
|
|
|
|
|
|
|
|
|
class LanzuServerStartListener implements ListenerInterface |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
public function listen(): array |
|
|
|
|
|
{ |
|
|
|
|
|
return [ |
|
|
|
|
|
MainWorkerStart::class, |
|
|
|
|
|
]; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function process(object $event) |
|
|
|
|
|
{ |
|
|
|
|
|
//平滑更新
|
|
|
|
|
|
//var_dump("process:\n");
|
|
|
|
|
|
} |
|
|
|
|
|
} |