trafficmonitor init...2
This commit is contained in:
parent
085b7a03e7
commit
a5c8061eef
@ -30,7 +30,9 @@ class PipelineStep
|
|||||||
$this->logService->log($context, 'START');
|
$this->logService->log($context, 'START');
|
||||||
// 2. 단계(Steps) 순차 실행
|
// 2. 단계(Steps) 순차 실행
|
||||||
foreach ($steps as $step) {
|
foreach ($steps as $step) {
|
||||||
// 각 단계는 컨텍스트를 받아 처리하고 업데이트된 컨텍스트를 반환합니다.
|
if (!($step instanceof PipelineStepInterface)) {
|
||||||
|
throw new \Exception("파이프라인 단계는 PipelineStep 인터페이스를 구현해야 합니다.");
|
||||||
|
}
|
||||||
$context = $step->handle($context);
|
$context = $step->handle($context);
|
||||||
}
|
}
|
||||||
// 3. Log SUCCESS: 모든 단계 성공 로깅
|
// 3. Log SUCCESS: 모든 단계 성공 로깅
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user