diff --git a/app/Libraries/PipelineStep.php b/app/Libraries/PipelineStep.php index 6c1a054..d8a43b9 100644 --- a/app/Libraries/PipelineStep.php +++ b/app/Libraries/PipelineStep.php @@ -30,7 +30,9 @@ class PipelineStep $this->logService->log($context, 'START'); // 2. 단계(Steps) 순차 실행 foreach ($steps as $step) { - // 각 단계는 컨텍스트를 받아 처리하고 업데이트된 컨텍스트를 반환합니다. + if (!($step instanceof PipelineStepInterface)) { + throw new \Exception("파이프라인 단계는 PipelineStep 인터페이스를 구현해야 합니다."); + } $context = $step->handle($context); } // 3. Log SUCCESS: 모든 단계 성공 로깅