Files
kiri-core/http-server/Abstracts/OnTaskerStart.php
T

37 lines
675 B
PHP
Raw Normal View History

2021-09-19 16:42:29 +08:00
<?php
2021-09-21 02:46:21 +08:00
namespace Server\Abstracts;
2021-09-19 16:42:29 +08:00
2021-10-19 17:32:26 +08:00
use Kiri\Exception\ConfigException;
2021-09-19 16:42:29 +08:00
use Kiri\Kiri;
use Psr\EventDispatcher\EventDispatcherInterface;
2021-10-19 17:32:26 +08:00
use ReflectionException;
2021-09-19 16:42:29 +08:00
use Server\ServerManager;
2021-10-19 17:32:26 +08:00
/**
*
*/
2021-09-19 16:42:29 +08:00
class OnTaskerStart extends WorkerStart implements EventDispatcherInterface
{
/**
2021-10-19 17:32:26 +08:00
* @throws ConfigException
* @throws ReflectionException
2021-09-19 16:42:29 +08:00
*/
public function dispatch(object $event)
{
$time = microtime(true);
ServerManager::setEnv('environmental', Kiri::TASK);
2021-11-01 17:12:47 +08:00
// if (!is_enable_file_modification_listening()) {
// $this->interpretDirectory();
// }
2021-09-19 16:42:29 +08:00
2021-09-20 00:52:44 +08:00
$this->mixed($event, false, $time);
2021-09-19 16:42:29 +08:00
}
}