Skip to content

Commit

Permalink
PAC-883: add entity mapping for parent_sku
Browse files Browse the repository at this point in the history
  • Loading branch information
kenza-ya committed May 28, 2024
1 parent 6fc77d8 commit 086eaa1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion symfony/Resources/config/services.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

<parameters>
<parameter key="import_product_link.param.sku.column.name" type="constant">TechDivision\Import\Product\Link\Utils\ColumnKeys::LINK_CHILD_SKU</parameter>
<parameter key="import_product_link.param.parent.sku.column.name" type="constant">TechDivision\Import\Product\Link\Utils\ColumnKeys::LINK_PARENT_SKU</parameter>
</parameters>

<services>
Expand Down Expand Up @@ -146,6 +147,11 @@
<argument type="service" id="import_product.processor.product.bunch"/>
<argument type="string">%import_product_link.param.sku.column.name%</argument>
</service>

<service id="import_product_link.observer.parent.sku.entity.id.mapping" class="TechDivision\Import\Product\Observers\GenericSkuEntityIdMappingObserver">
<argument type="service" id="import_product.processor.product.bunch"/>
<argument type="string">%import_product_link.param.parent.sku.column.name%</argument>
</service>
<service id="import_product_link.observer.clean.up.product.link" class="TechDivision\Import\Product\Link\Observers\CleanUpLinkObserver">
<argument type="service" id="import_product_link.processor.product.link"/>
</service>
Expand All @@ -168,6 +174,9 @@
| The DI configuration for the composite observers of the add-update operation.
|-->
<service id="import_product_link.observer.composite.add_update" class="TechDivision\Import\Observers\GenericCompositeObserver">
<call method="addObserver">
<argument id="import_product_link.observer.parent.sku.entity.id.mapping" type="service"/>
</call>
<call method="addObserver">
<argument id="import_product_link.observer.sku.entity.id.mapping" type="service"/>
</call>
Expand All @@ -188,4 +197,4 @@

</services>

</container>
</container>

0 comments on commit 086eaa1

Please sign in to comment.