Files
kiri-core/http-server/Events/OnWorkerExit.php
T

28 lines
381 B
PHP
Raw Normal View History

2020-08-31 01:27:08 +08:00
<?php
2020-09-02 11:38:47 +08:00
namespace HttpServer\Events;
2020-08-31 01:27:08 +08:00
2020-09-02 17:33:48 +08:00
use Exception;
2020-09-02 11:38:47 +08:00
use HttpServer\Events\Abstracts\Callback;
2020-08-31 01:27:08 +08:00
2020-09-02 17:33:48 +08:00
/**
* Class OnWorkerExit
* @package HttpServer\Events
*/
2020-08-31 01:27:08 +08:00
class OnWorkerExit extends Callback
{
/**
* @param $server
* @param $worker_id
2020-09-02 17:33:48 +08:00
* @throws Exception
2020-08-31 01:27:08 +08:00
*/
public function onHandler($server, $worker_id)
{
$this->clear($server, $worker_id, self::EVENT_EXIT);
}
}