示例#1
0
 /**
  * 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());
 }
示例#2
0
文件: ItemStep.php 项目: akeneo/batch
 /**
  * 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());
 }