From 03a54dd0de7105891e53f883cfebeab648f25fef Mon Sep 17 00:00:00 2001 From: wagnert Date: Thu, 22 Dec 2016 09:56:27 +0100 Subject: [PATCH 1/2] Rename example => projects folder + re-order directory structure to support multiple projects --- .gitignore | 5 ++-- CHANGELOG.md | 10 +++++++ README.md | 10 +++---- .../ce/212/conf/techdivision-import.json | 26 +++++++++---------- .../magento-import_20161024_194026_01.csv | 0 .../magento-import_20161024_194026_02.csv | 0 .../magento-import_20161024_194026_03.csv | 0 .../magento-import_20161024_194026_04.csv | 0 .../ee/212/conf/techdivision-import.json | 26 +++++++++---------- .../magento-import_20161021_161909_01.csv | 0 .../magento-import_20161021_161909_02.csv | 0 .../magento-import_20161021_161909_03.csv | 0 .../magento-import_20161021_161909_04.csv | 0 13 files changed, 44 insertions(+), 33 deletions(-) rename {example => projects/sample-data}/ce/212/conf/techdivision-import.json (93%) rename {example => projects/sample-data}/ce/212/data/magento-import_20161024_194026_01.csv (100%) rename {example => projects/sample-data}/ce/212/data/magento-import_20161024_194026_02.csv (100%) rename {example => projects/sample-data}/ce/212/data/magento-import_20161024_194026_03.csv (100%) rename {example => projects/sample-data}/ce/212/data/magento-import_20161024_194026_04.csv (100%) rename {example => projects/sample-data}/ee/212/conf/techdivision-import.json (93%) rename {example => projects/sample-data}/ee/212/data/magento-import_20161021_161909_01.csv (100%) rename {example => projects/sample-data}/ee/212/data/magento-import_20161021_161909_02.csv (100%) rename {example => projects/sample-data}/ee/212/data/magento-import_20161021_161909_03.csv (100%) rename {example => projects/sample-data}/ee/212/data/magento-import_20161021_161909_04.csv (100%) diff --git a/.gitignore b/.gitignore index b931d6aa..caebcc68 100755 --- a/.gitignore +++ b/.gitignore @@ -5,5 +5,6 @@ composer.lock /dist /target /vendor -/example/tmp -/example/magento2-sample-data +/projects/sample-data/tmp +/projects/sample-data/magento2-sample-data +/projects/.gitignore diff --git a/CHANGELOG.md b/CHANGELOG.md index 5b04d77a..6ac8fbe2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# Version 1.0.0-alpha6 + +## Bugfixes + +* None + +## Features + +* Rename example => projects folder + re-order directory structure to support multiple projects + # Version 1.0.0-alpha5 ## Bugfixes diff --git a/README.md b/README.md index 233ff0da..1d203511 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,7 @@ To run the example import, it is necessary to get a copy of the Magento 2 sample from Github, assumed you're in the root folder of this repository, by invoking ```sh -$ git clone https://github.com/magento/magento2-sample-data.git example/magento2-sample-data +$ git clone https://github.com/magento/magento2-sample-data.git projects/sample-data/magento2-sample-data ``` on the command line. @@ -89,10 +89,10 @@ have to copied to the source directory specified for the subjects. When running directory before. ```sh -$ sudo rm -rf example/tmp \ - && sudo mkdir example/tmp \ - && sudo cp example/ce/212/data/*.csv example/tmp \ +$ sudo rm -rf projects/sample-data/tmp \ + && sudo mkdir projects/sample-data/tmp \ + && sudo cp projects/sample-data/ce/212/data/*.csv projects/sample-data/tmp \ && sudo bin/import-simple import:products \ --installation-dir=/var/www/magento \ - --configuration=example/ce/212/conf/techdivision-import.json + --configuration=projects/sample-data/ce/212/conf/techdivision-import.json ``` \ No newline at end of file diff --git a/example/ce/212/conf/techdivision-import.json b/projects/sample-data/ce/212/conf/techdivision-import.json similarity index 93% rename from example/ce/212/conf/techdivision-import.json rename to projects/sample-data/ce/212/conf/techdivision-import.json index 87999b0b..078178a0 100644 --- a/example/ce/212/conf/techdivision-import.json +++ b/projects/sample-data/ce/212/conf/techdivision-import.json @@ -19,8 +19,8 @@ "utility-class-name" : "TechDivision\\Import\\Product\\Utils\\SqlStatements", "identifier": "files", "source-date-format": "n/d/y, g:i A", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "prefix": "magento-import", "observers": [ { @@ -41,8 +41,8 @@ "utility-class-name" : "TechDivision\\Import\\Product\\Utils\\SqlStatements", "identifier": "files", "source-date-format": "n/d/y, g:i A", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "prefix": "magento-import", "observers": [ { @@ -210,8 +210,8 @@ "processor-factory" : "TechDivision\\Import\\Cli\\Services\\ProductVariantProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Variant\\Utils\\SqlStatements", "prefix": "variants", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "observers": [ { "import": [ @@ -225,8 +225,8 @@ "processor-factory" : "TechDivision\\Import\\Cli\\Services\\ProductBundleProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Bundle\\Utils\\SqlStatements", "prefix": "bundles", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "observers": [ { "import": [ @@ -243,13 +243,13 @@ "processor-factory" : "TechDivision\\Import\\Cli\\Services\\ProductMediaProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Media\\Utils\\SqlStatements", "prefix": "media", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "params" : [ { "root-directory" : "/", "media-directory" : "/opt/appserver/webapps/magento2_ce212/pub/media/catalog/product", - "images-file-directory" : "example/magento2-sample-data/pub/media/catalog/product" + "images-file-directory" : "projects/sample-data/magento2-sample-data/pub/media/catalog/product" } ], "observers": [ @@ -269,8 +269,8 @@ "processor-factory" : "TechDivision\\Import\\Cli\\Services\\ProductLinkProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Links\\Utils\\SqlStatements", "prefix": "links", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "observers": [ { "import": [ diff --git a/example/ce/212/data/magento-import_20161024_194026_01.csv b/projects/sample-data/ce/212/data/magento-import_20161024_194026_01.csv similarity index 100% rename from example/ce/212/data/magento-import_20161024_194026_01.csv rename to projects/sample-data/ce/212/data/magento-import_20161024_194026_01.csv diff --git a/example/ce/212/data/magento-import_20161024_194026_02.csv b/projects/sample-data/ce/212/data/magento-import_20161024_194026_02.csv similarity index 100% rename from example/ce/212/data/magento-import_20161024_194026_02.csv rename to projects/sample-data/ce/212/data/magento-import_20161024_194026_02.csv diff --git a/example/ce/212/data/magento-import_20161024_194026_03.csv b/projects/sample-data/ce/212/data/magento-import_20161024_194026_03.csv similarity index 100% rename from example/ce/212/data/magento-import_20161024_194026_03.csv rename to projects/sample-data/ce/212/data/magento-import_20161024_194026_03.csv diff --git a/example/ce/212/data/magento-import_20161024_194026_04.csv b/projects/sample-data/ce/212/data/magento-import_20161024_194026_04.csv similarity index 100% rename from example/ce/212/data/magento-import_20161024_194026_04.csv rename to projects/sample-data/ce/212/data/magento-import_20161024_194026_04.csv diff --git a/example/ee/212/conf/techdivision-import.json b/projects/sample-data/ee/212/conf/techdivision-import.json similarity index 93% rename from example/ee/212/conf/techdivision-import.json rename to projects/sample-data/ee/212/conf/techdivision-import.json index 20e136c8..3630f594 100644 --- a/example/ee/212/conf/techdivision-import.json +++ b/projects/sample-data/ee/212/conf/techdivision-import.json @@ -19,8 +19,8 @@ "utility-class-name" : "TechDivision\\Import\\Product\\Ee\\Utils\\SqlStatements", "identifier": "files", "source-date-format": "n/d/y, g:i A", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "prefix": "magento-import", "observers": [ { @@ -41,8 +41,8 @@ "utility-class-name" : "TechDivision\\Import\\Product\\Ee\\Utils\\SqlStatements", "identifier": "files", "source-date-format": "n/d/y, g:i A", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "prefix": "magento-import", "observers": [ { @@ -210,8 +210,8 @@ "processor-factory" : "TechDivision\\Import\\Cli\\Services\\ProductVariantProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Variant\\Utils\\SqlStatements", "prefix": "variants", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "observers": [ { "import": [ @@ -225,8 +225,8 @@ "processor-factory" : "TechDivision\\Import\\Cli\\Services\\ProductBundleProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Bundle\\Utils\\SqlStatements", "prefix": "bundles", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "observers": [ { "import": [ @@ -243,13 +243,13 @@ "processor-factory" : "TechDivision\\Import\\Cli\\Services\\ProductMediaProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Media\\Ee\\Utils\\SqlStatements", "prefix": "media", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "params" : [ { "root-directory" : "/", "media-directory" : "/opt/appserver/webapps/magento2_ee212/pub/media/catalog/product", - "images-file-directory" : "example/magento2-sample-data/pub/media/catalog/product" + "images-file-directory" : "projects/sample-data/magento2-sample-data/pub/media/catalog/product" } ], "observers": [ @@ -269,8 +269,8 @@ "processor-factory" : "TechDivision\\Import\\Cli\\Services\\ProductLinkProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Link\\Utils\\SqlStatements", "prefix": "links", - "source-dir": "example/tmp", - "target-dir": "example/tmp", + "source-dir": "projects/sample-data/tmp", + "target-dir": "projects/sample-data/tmp", "observers": [ { "import": [ diff --git a/example/ee/212/data/magento-import_20161021_161909_01.csv b/projects/sample-data/ee/212/data/magento-import_20161021_161909_01.csv similarity index 100% rename from example/ee/212/data/magento-import_20161021_161909_01.csv rename to projects/sample-data/ee/212/data/magento-import_20161021_161909_01.csv diff --git a/example/ee/212/data/magento-import_20161021_161909_02.csv b/projects/sample-data/ee/212/data/magento-import_20161021_161909_02.csv similarity index 100% rename from example/ee/212/data/magento-import_20161021_161909_02.csv rename to projects/sample-data/ee/212/data/magento-import_20161021_161909_02.csv diff --git a/example/ee/212/data/magento-import_20161021_161909_03.csv b/projects/sample-data/ee/212/data/magento-import_20161021_161909_03.csv similarity index 100% rename from example/ee/212/data/magento-import_20161021_161909_03.csv rename to projects/sample-data/ee/212/data/magento-import_20161021_161909_03.csv diff --git a/example/ee/212/data/magento-import_20161021_161909_04.csv b/projects/sample-data/ee/212/data/magento-import_20161021_161909_04.csv similarity index 100% rename from example/ee/212/data/magento-import_20161021_161909_04.csv rename to projects/sample-data/ee/212/data/magento-import_20161021_161909_04.csv From c81f0654e1a163a0f3dc235aa5cd9823c39e6041 Mon Sep 17 00:00:00 2001 From: wagnert Date: Thu, 22 Dec 2016 19:30:13 +0100 Subject: [PATCH 2/2] Now load default store on start-up + Rename example => projects folder + re-order directory structure to support multiple projects + Rename ProductProcessorFactory => ProductBunchProcessorFactory --- CHANGELOG.md | 3 ++ projects/.DS_Store | Bin 0 -> 6148 bytes projects/sample-data/.DS_Store | Bin 0 -> 6148 bytes .../ce/212/conf/techdivision-import.json | 4 +- projects/sample-data/ee/.DS_Store | Bin 0 -> 6148 bytes projects/sample-data/ee/212/.DS_Store | Bin 0 -> 6148 bytes .../ee/212/conf/techdivision-import.json | 4 +- ...php => EeProductBunchProcessorFactory.php} | 7 ++- ...y.php => ProductBunchProcessorFactory.php} | 40 +++++++++--------- .../ProductBundleProcessorFactory.php | 2 +- src/Services/ProductLinkProcessorFactory.php | 2 +- src/Services/ProductMediaProcessorFactory.php | 2 +- .../ProductVariantProcessorFactory.php | 2 +- src/Simple.php | 6 ++- 14 files changed, 39 insertions(+), 33 deletions(-) create mode 100644 projects/.DS_Store create mode 100644 projects/sample-data/.DS_Store create mode 100644 projects/sample-data/ee/.DS_Store create mode 100644 projects/sample-data/ee/212/.DS_Store rename src/Services/{EeProductProcessorFactory.php => EeProductBunchProcessorFactory.php} (93%) rename src/Services/{ProductProcessorFactory.php => ProductBunchProcessorFactory.php} (89%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ac8fbe2..72387a25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,10 @@ ## Features +* Now load default store on start-up * Rename example => projects folder + re-order directory structure to support multiple projects +* Rename ProductProcessorFactory => ProductBunchProcessorFactory +* Fixed some typos # Version 1.0.0-alpha5 diff --git a/projects/.DS_Store b/projects/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0ea1aba8210a5efe2292312a35458653ebc15fa3 GIT binary patch literal 6148 zcmeHKyG{c!5FA60BBe=5=^vor53DGB0Y5;(0Zq^$0{wOTHnWdNSSO@Z6lhjj&+Xoh zt()T33!rR1hg)C`U`aQ`mo0O%_vSOZ$c$m}J>H*(4q(F3iMwG z7aswL3#Q%p?6U;1T7uXTr$AiIiVCko%!nJ zC@oN{6p#YF0+$i4t^eQAf0_S#k|HS}1^$%+WwE{AZum*rTW23Xmviw} jO!QXFz*_P3kGg8leBTnMK&LbBbfPW-ri)Ap{DlJFRr(u^ literal 0 HcmV?d00001 diff --git a/projects/sample-data/.DS_Store b/projects/sample-data/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..d7ed1bca343f966abb68e28bb3ba9f0e79b2d055 GIT binary patch literal 6148 zcmeH~Jr2S!425lAKw|00n1usyg9yP1xB!B}gv5Z@b9A167%0rBLeG-@#cr&&Z)j=} z(aob@i*zC~hZ|*OVPJ}UB4;^Y`upj4yIrl2Hc46u-pSzlYadAkr~nn90#twsj7Nby z%IAymJQAOT3Q&QOC}7`*0yoxV3;L%6!AAgahO!&hK1+bb3SdpPASy78Rxn!C#}KP~ zJ6LjGO}1dPi{|j5d1tjL2By(2T9ClBIvA(`6&NTmjl8q-e+U0I{|{Q2QUNOPXA0~F$)KP6GRA3zy%OgOh^ofJxAyHXQ42o3O!5q7dy4uzM-i_ zM0d|&Bhrh=0&bMGg^?-pxol-4+w1VSobUIWmE2}YE5Lgh?dLW@1*iZOpaN8Y3QS0W zJjfTz2|W`Zg$huCX((XdhXOa&WDEMI1HnfCutV7mYo8^+Vg;}!TM!kPMk^St>SKu2 zy&WuhT}`%Nw2S8Op?PPuDF&v|E?SVlv^p5502LT1Fps>q^Zx+xq#!9l+q;q4~?i5b>!3`IX%4*|M(?5HIN=naG*JwY#!G)ATX8ItTedOj&Gbut%5@ClGlq)gcU zgJlA+&29PuMgS|i6KfAMGv)&(>~Y2ZI9(3E=kv*nw6_j;N*^)X&uu{pNC7Dz1*Cu! zSdapFjITZx^h|mbDIf)wp@4rM3f)FOW6aI$5DvP7ju? z7GsFlqn#{yT}`&m-VV#*!}8ANQw+^|JFGCFSq&&i0Vyz3;JxRgpa0+VXY>E8MX3~! z0xzb34cnjXhA)+8>%;4LeV0{VH#!-YGyM4pVB$ydCq0b&#TR5vwoX=P`Vj~j6r{kv GDsTrNVG@%7 literal 0 HcmV?d00001 diff --git a/projects/sample-data/ee/212/conf/techdivision-import.json b/projects/sample-data/ee/212/conf/techdivision-import.json index 3630f594..bf0991be 100644 --- a/projects/sample-data/ee/212/conf/techdivision-import.json +++ b/projects/sample-data/ee/212/conf/techdivision-import.json @@ -15,7 +15,7 @@ "subjects" : [ { "class-name": "TechDivision\\Import\\Product\\Ee\\Subjects\\EeBunchSubject", - "processor-factory" : "TechDivision\\Import\\Cli\\Services\\EeProductProcessorFactory", + "processor-factory" : "TechDivision\\Import\\Cli\\Services\\EeProductBunchProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Ee\\Utils\\SqlStatements", "identifier": "files", "source-date-format": "n/d/y, g:i A", @@ -37,7 +37,7 @@ "subjects": [ { "class-name": "TechDivision\\Import\\Product\\Ee\\Subjects\\EeBunchSubject", - "processor-factory" : "TechDivision\\Import\\Cli\\Services\\EeProductProcessorFactory", + "processor-factory" : "TechDivision\\Import\\Cli\\Services\\EeProductBunchProcessorFactory", "utility-class-name" : "TechDivision\\Import\\Product\\Ee\\Utils\\SqlStatements", "identifier": "files", "source-date-format": "n/d/y, g:i A", diff --git a/src/Services/EeProductProcessorFactory.php b/src/Services/EeProductBunchProcessorFactory.php similarity index 93% rename from src/Services/EeProductProcessorFactory.php rename to src/Services/EeProductBunchProcessorFactory.php index c7a2eef2..43df2265 100644 --- a/src/Services/EeProductProcessorFactory.php +++ b/src/Services/EeProductBunchProcessorFactory.php @@ -1,7 +1,7 @@ * @copyright 2016 TechDivision GmbH @@ -61,7 +61,7 @@ * @link https://github.com/techdivision/import-cli-simple * @link http://www.techdivision.com */ -class ProductProcessorFactory extends AbstractProductProcessorFactory +class ProductBunchProcessorFactory extends AbstractProductProcessorFactory { /** @@ -71,7 +71,7 @@ class ProductProcessorFactory extends AbstractProductProcessorFactory */ protected static function getProcessorType() { - return 'TechDivision\Import\Product\Services\ProductProcessor'; + return 'TechDivision\Import\Product\Services\ProductBunchProcessor'; } /** @@ -220,23 +220,23 @@ public static function factory(\PDO $connection, SubjectInterface $configuration // initialize the product processor $processorType = static::getProcessorType(); - $productProcessor = new $processorType(); - $productProcessor->setConnection($connection); - $productProcessor->setEavAttributeOptionValueRepository($eavAttributeOptionValueRepository); - $productProcessor->setUrlRewriteRepository($urlRewriteRepository); - $productProcessor->setProductCategoryAction($productCategoryAction); - $productProcessor->setProductDatetimeAction($productDatetimeAction); - $productProcessor->setProductDecimalAction($productDecimalAction); - $productProcessor->setProductIntAction($productIntAction); - $productProcessor->setProductAction($productAction); - $productProcessor->setProductTextAction($productTextAction); - $productProcessor->setProductVarcharAction($productVarcharAction); - $productProcessor->setProductWebsiteAction($productWebsiteAction); - $productProcessor->setStockItemAction($stockItemAction); - $productProcessor->setStockStatusAction($stockStatusAction); - $productProcessor->setUrlRewriteAction($urlRewriteAction); + $productBunchProcessor = new $processorType(); + $productBunchProcessor->setConnection($connection); + $productBunchProcessor->setEavAttributeOptionValueRepository($eavAttributeOptionValueRepository); + $productBunchProcessor->setUrlRewriteRepository($urlRewriteRepository); + $productBunchProcessor->setProductCategoryAction($productCategoryAction); + $productBunchProcessor->setProductDatetimeAction($productDatetimeAction); + $productBunchProcessor->setProductDecimalAction($productDecimalAction); + $productBunchProcessor->setProductIntAction($productIntAction); + $productBunchProcessor->setProductAction($productAction); + $productBunchProcessor->setProductTextAction($productTextAction); + $productBunchProcessor->setProductVarcharAction($productVarcharAction); + $productBunchProcessor->setProductWebsiteAction($productWebsiteAction); + $productBunchProcessor->setStockItemAction($stockItemAction); + $productBunchProcessor->setStockStatusAction($stockStatusAction); + $productBunchProcessor->setUrlRewriteAction($urlRewriteAction); // return the instance - return $productProcessor; + return $productBunchProcessor; } } diff --git a/src/Services/ProductBundleProcessorFactory.php b/src/Services/ProductBundleProcessorFactory.php index a909a954..a846cdbf 100644 --- a/src/Services/ProductBundleProcessorFactory.php +++ b/src/Services/ProductBundleProcessorFactory.php @@ -31,7 +31,7 @@ use TechDivision\Import\Product\Bundle\Actions\Processors\ProductBundleSelectionPricePersistProcessor; /** - * A SLSB providing methods to load product data using a PDO connection. + * Factory to create a new product bundle processor. * * @author Tim Wagner * @copyright 2016 TechDivision GmbH diff --git a/src/Services/ProductLinkProcessorFactory.php b/src/Services/ProductLinkProcessorFactory.php index 40cc04c3..568ccf94 100644 --- a/src/Services/ProductLinkProcessorFactory.php +++ b/src/Services/ProductLinkProcessorFactory.php @@ -33,7 +33,7 @@ use TechDivision\Import\Product\Link\Actions\Processors\ProductLinkAttributeVarcharPersistProcessor; /** - * A SLSB providing methods to load product link data using a PDO connection. + * Factory to create a new product link processor. * * @author Tim Wagner * @copyright 2016 TechDivision GmbH diff --git a/src/Services/ProductMediaProcessorFactory.php b/src/Services/ProductMediaProcessorFactory.php index 282179d4..5bf0cc93 100644 --- a/src/Services/ProductMediaProcessorFactory.php +++ b/src/Services/ProductMediaProcessorFactory.php @@ -31,7 +31,7 @@ use TechDivision\Import\Product\Media\Actions\ProductMediaGalleryValueToEntityAction; /** - * A SLSB providing methods to load product data using a PDO connection. + * Factory to create a new product media processor. * * @author Tim Wagner * @copyright 2016 TechDivision GmbH diff --git a/src/Services/ProductVariantProcessorFactory.php b/src/Services/ProductVariantProcessorFactory.php index 1057598c..64468e5b 100644 --- a/src/Services/ProductVariantProcessorFactory.php +++ b/src/Services/ProductVariantProcessorFactory.php @@ -33,7 +33,7 @@ use TechDivision\Import\Product\Variant\Actions\Processors\ProductSuperLinkPersistProcessor; /** - * A SLSB providing methods to load product data using a PDO connection. + * Factory to create a new product variant processor. * * @author Tim Wagner * @copyright 2016 TechDivision GmbH diff --git a/src/Simple.php b/src/Simple.php index 0730e841..8f379b2f 100644 --- a/src/Simple.php +++ b/src/Simple.php @@ -281,6 +281,7 @@ public function setUp() $globalData[RegistryKeys::STORES] = $importProcessor->getStores(); $globalData[RegistryKeys::LINK_TYPES] = $importProcessor->getLinkTypes(); $globalData[RegistryKeys::TAX_CLASSES] = $importProcessor->getTaxClasses(); + $globalData[RegistryKeys::DEFAULT_STORE] = $importProcessor->getDefaultStore(); $globalData[RegistryKeys::STORE_WEBSITES] = $importProcessor->getStoreWebsites(); $globalData[RegistryKeys::ROOT_CATEGORIES] = $importProcessor->getRootCategories(); $globalData[RegistryKeys::ATTRIBUTE_SETS] = $eavAttributeSets = $importProcessor->getEavAttributeSetsByEntityTypeId(4); @@ -322,7 +323,10 @@ public function setUp() $globalData[RegistryKeys::EAV_ATTRIBUTES] = $eavAttributes; // add the status with the global data - $registryProcessor->mergeAttributesRecursive($this->getSerial(), array(RegistryKeys::GLOBAL_DATA => $globalData)); + $registryProcessor->mergeAttributesRecursive( + $this->getSerial(), + array(RegistryKeys::GLOBAL_DATA => $globalData) + ); } catch (\Exception $e) { $this->getSystemLogger()->error($e->__toString());