コード例 #1
0
 /**
  * Constructor
  *
  * @param array                $fixtureConfig
  * @param InvalidItemException $previous
  */
 public function __construct(array $fixtureConfig, InvalidItemException $previous)
 {
     $message = sprintf("%s\n%s", $previous->getMessage(), Yaml::dump(['fixture' => $fixtureConfig, 'item' => $previous->getItem()], 2));
     parent::__construct($message);
 }
コード例 #2
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());
 }
コード例 #3
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());
 }