/** * Handle step execution warning * * @param StepExecution $stepExecution * @param mixed $element * @param InvalidItemException $e */ protected function handleStepExecutionWarning(StepExecution $stepExecution, $element, InvalidItemException $e) { if ($element instanceof AbstractConfigurableStepElement) { $warningName = $element->getName(); } else { $warningName = get_class($element); } $stepExecution->addWarning($warningName, $e->getMessage(), $e->getMessageParameters(), $e->getItem()); $this->dispatchInvalidItemEvent(get_class($element), $e->getMessage(), $e->getMessageParameters(), $e->getItem()); }
/** * Handle step execution warning * * @param StepExecution $stepExecution * @param mixed $element * @param InvalidItemException $e */ protected function handleStepExecutionWarning(StepExecution $stepExecution, $element, InvalidItemException $e) { $stepExecution->addWarning($e->getMessage(), $e->getMessageParameters(), $e->getItem()); $this->dispatchInvalidItemEvent(get_class($element), $e->getMessage(), $e->getMessageParameters(), $e->getItem()); }