|
@@ 78-87 (lines=10) @@
|
| 75 |
|
* @param mixed $key |
| 76 |
|
* @param callable|null $startCallback |
| 77 |
|
*/ |
| 78 |
|
private function startCallback(Process $process, $key, callable $startCallback = null) |
| 79 |
|
{ |
| 80 |
|
if (null === $startCallback) { |
| 81 |
|
return; |
| 82 |
|
} |
| 83 |
|
|
| 84 |
|
$this->logger->debug(self::LOG_START_START_CALLBACK, ['process' => $process, 'key' => $key]); |
| 85 |
|
$startCallback($process, $key); |
| 86 |
|
$this->logger->debug(self::LOG_STOP_START_CALLBACK, ['process' => $process, 'key' => $key]); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
/** |
| 90 |
|
* @param Process[]|array $processes |
|
@@ 109-118 (lines=10) @@
|
| 106 |
|
* @param mixed $key |
| 107 |
|
* @param callable|null $finishCallback |
| 108 |
|
*/ |
| 109 |
|
private function finishCallback(Process $process, $key, callable $finishCallback = null) |
| 110 |
|
{ |
| 111 |
|
if (null === $finishCallback) { |
| 112 |
|
return; |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
$this->logger->debug(self::LOG_START_FINISH_CALLBACK, ['process' => $process, 'key' => $key]); |
| 116 |
|
$finishCallback($process, $key); |
| 117 |
|
$this->logger->debug(self::LOG_STOP_FINISH_CALLBACK, ['process' => $process, 'key' => $key]); |
| 118 |
|
} |
| 119 |
|
} |
| 120 |
|
|