This commit is contained in:
2022-10-11 23:28:51 +08:00
parent d3ef6da34a
commit b74abb5500
+1 -1
View File
@@ -69,7 +69,7 @@ class ProcessManager extends Component
if (is_string($custom)) {
$custom = Kiri::getDi()->get($custom);
}
if (isset($this->process[$custom->getName()])) {
if (isset($this->_process[$custom->getName()])) {
throw new Exception('Process(' . $custom->getName() . ') is exists.');
}
$this->_process[$custom->getName()] = new Process(function (Process $process) use ($custom) {