modify mysql result
This commit is contained in:
+19
-1
@@ -3,6 +3,7 @@
|
||||
namespace Kiri\Server;
|
||||
|
||||
use Exception;
|
||||
use Kiri\Abstracts\Config;
|
||||
use Kiri\Annotation\Inject;
|
||||
use Kiri\Error\StdoutLoggerInterface;
|
||||
use Kiri\Server\Abstracts\BaseProcess;
|
||||
@@ -45,12 +46,29 @@ class Inotify extends BaseProcess
|
||||
set_error_handler([$this, 'error']);
|
||||
set_exception_handler([$this, 'error']);
|
||||
|
||||
$this->dirs = [CONTROLLER_PATH, MODEL_PATH, APP_PATH . 'routes', APP_PATH . 'vendor/game-worker'];
|
||||
if (!extension_loaded('inotify')) {
|
||||
$this->cid = Timer::tick(1000, function () {
|
||||
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
$this->dirs = Config::get('inotify', []);
|
||||
|
||||
$this->start();
|
||||
}
|
||||
|
||||
|
||||
public function onSigterm(): static
|
||||
{
|
||||
Timer::clear($this->cid);
|
||||
|
||||
$this->isStop = true;
|
||||
|
||||
return parent::onSigterm(); // TODO: Change the autogenerated stub
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return void
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user