| @@ 109-121 (lines=13) @@ | ||
| 106 | * @param \TechDivision\Import\Observers\AttributeLoaderInterface $attributeLoader The attribute loader instance |
|
| 107 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance to use |
|
| 108 | */ |
|
| 109 | public function __construct( |
|
| 110 | ProductMediaProcessorInterface $productMediaProcessor, |
|
| 111 | AttributeLoaderInterface $attributeLoader = null, |
|
| 112 | StateDetectorInterface $stateDetector = null |
|
| 113 | ) { |
|
| 114 | ||
| 115 | // initialize the media processor and the dynamic attribute loader instance |
|
| 116 | $this->productMediaProcessor = $productMediaProcessor; |
|
| 117 | $this->attributeLoader = $attributeLoader; |
|
| 118 | ||
| 119 | // pass the state detector to the parent method |
|
| 120 | parent::__construct($stateDetector); |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * Return's the product media processor instance. |
|
| @@ 89-101 (lines=13) @@ | ||
| 86 | * @param \TechDivision\Import\Observers\AttributeLoaderInterface $attributeLoader The attribute loader instance |
|
| 87 | * @param \TechDivision\Import\Observers\StateDetectorInterface|null $stateDetector The state detector instance to use |
|
| 88 | */ |
|
| 89 | public function __construct( |
|
| 90 | ProductMediaProcessorInterface $productMediaProcessor, |
|
| 91 | AttributeLoaderInterface $attributeLoader = null, |
|
| 92 | StateDetectorInterface $stateDetector = null |
|
| 93 | ) { |
|
| 94 | ||
| 95 | // initialize the media processor and the dynamic attribute loader instance |
|
| 96 | $this->productMediaProcessor = $productMediaProcessor; |
|
| 97 | $this->attributeLoader = $attributeLoader; |
|
| 98 | ||
| 99 | // pass the state detector to the parent method |
|
| 100 | parent::__construct($stateDetector); |
|
| 101 | } |
|
| 102 | ||
| 103 | /** |
|
| 104 | * Return's the product media processor instance. |
|