Files
kiri-core/http-server/Abstracts/OnTaskerStart.php
T
as2252258@163.com 907942b01a 111
2021-09-21 02:46:21 +08:00

31 lines
613 B
PHP

<?php
namespace Server\Abstracts;
use Kiri\Kiri;
use Psr\EventDispatcher\EventDispatcherInterface;
use Server\ServerManager;
class OnTaskerStart extends WorkerStart implements EventDispatcherInterface
{
/**
* @throws \Kiri\Exception\ConfigException
* @throws \ReflectionException
*/
public function dispatch(object $event)
{
$time = microtime(true);
ServerManager::setEnv('environmental', Kiri::TASK);
if (!is_enable_file_modification_listening()) {
$this->interpretDirectory();
}
$this->mixed($event, false, $time);
}
}