diff --git a/src/Subjects/OptionSubject.php b/src/Subjects/OptionSubject.php index c490e8b..25705b4 100644 --- a/src/Subjects/OptionSubject.php +++ b/src/Subjects/OptionSubject.php @@ -76,10 +76,8 @@ public function setUp($serial) } // initialize the flag whether to override images or not - // @todo https://github.com/techdivision/import/issues/181 - // Create new constant ConfigurationKeys::OVERRIDE_IMAGES for future release - if ($this->getConfiguration()->hasParam('override-images')) { - $this->setOverrideImages($this->getConfiguration()->getParam('override-images')); + if ($this->getConfiguration()->hasParam(ConfigurationKeys::OVERRIDE_IMAGES)) { + $this->setOverrideImages($this->getConfiguration()->getParam(ConfigurationKeys::OVERRIDE_IMAGES)); } // initialize media directory => can be absolute or relative diff --git a/src/Utils/ConfigurationKeys.php b/src/Utils/ConfigurationKeys.php index e854c21..70d5f2f 100644 --- a/src/Utils/ConfigurationKeys.php +++ b/src/Utils/ConfigurationKeys.php @@ -42,4 +42,11 @@ class ConfigurationKeys extends \TechDivision\Import\Utils\ConfigurationKeys * @var string */ const COPY_IMAGES = 'copy-images'; + + /** + * Name for the column 'override-images'. + * + * @var string + */ + const OVERRIDE_IMAGES = 'override-images'; }