Files
kiri-http-server/Abstracts/OnTaskerStart.php
T
2021-11-03 17:39:08 +08:00

36 lines
640 B
PHP

<?php
namespace Server\Abstracts;
use Kiri\Exception\ConfigException;
use Kiri\Kiri;
use Psr\EventDispatcher\EventDispatcherInterface;
use ReflectionException;
use Server\ServerManager;
/**
*
*/
class OnTaskerStart extends WorkerStart implements EventDispatcherInterface
{
/**
* @throws ConfigException
*/
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);
}
}