Skip to content

Commit

Permalink
Merge pull request #1 from mageworx/develop
Browse files Browse the repository at this point in the history
fix plugins naming
  • Loading branch information
sergei-sss authored Oct 19, 2020
2 parents e2dac1d + 6967e52 commit e665f26
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
42 changes: 21 additions & 21 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
{
"name": "mageworx/module-seocrosslinks-graph-ql",
"description": "N/A",
"type": "magento2-module",
"require": {
"magento/framework": "102.0.*",
"mageworx/module-seocrosslinks": ">= 2.4.8",
"magento/module-cms-graph-ql": ">= 100.3.1 <104",
"magento/module-catalog-graph-ql": ">= 100.3.1 <104"
},
"license": [
"OSL-3.0",
"AFL-3.0"
],
"autoload": {
"files": [
"registration.php"
"name": "mageworx/module-seocrosslinks-graph-ql",
"description": "N/A",
"type": "magento2-module",
"require": {
"magento/framework": ">=102.0.0 < 104",
"mageworx/module-seocrosslinks": ">= 2.4.8",
"magento/module-cms-graph-ql": ">= 100.3.1 < 101",
"magento/module-catalog-graph-ql": ">= 100.3.1 < 101"
},
"license": [
"OSL-3.0",
"AFL-3.0"
],
"psr-4": {
"MageWorx\\SeoCrossLinksGraphQl\\": ""
}
},
"version": "1.0.0"
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"MageWorx\\SeoCrossLinksGraphQl\\": ""
}
},
"version": "1.0.0"
}
8 changes: 4 additions & 4 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@

<!-- Add use_in_crosslinking attribute to entities if needed -->
<type name="Magento\CatalogGraphQl\Model\Resolver\Products\DataProvider\Product\CollectionProcessorInterface">
<plugin name="mageworx_seocrosslinks_gql_add_attribute_to_category_collection"
<plugin name="mageworx_seocrosslinks_gql_add_attribute_to_product_collection"
type="MageWorx\SeoCrossLinksGraphQl\Plugin\AddCrosslinksAttributeToProductCollectionPlugin"
sortOrder="1"
/>
</type>
<type name="Magento\CatalogGraphQl\Model\AttributesJoiner">
<plugin name="mageworx_seocrosslinks_gql_add_attribute_to_product_collection"
<plugin name="mageworx_seocrosslinks_gql_add_attribute_to_category_collection"
type="MageWorx\SeoCrossLinksGraphQl\Plugin\AddCrosslinksAttributeToCategoryCollectionPlugin"
sortOrder="1"
/>
</type>

<!-- Add crosslinks to entities' content -->
<type name="Magento\CatalogGraphQl\Model\Resolver\Product\ProductComplexTextAttribute">
<plugin name="mageworx_seocrosslinks_gql_modify_product_data" type="MageWorx\SeoCrossLinksGraphQl\Plugin\AddCrosslinksToProductPlugin" sortOrder="1" />
<plugin name="mageworx_seocrosslinks_gql_modify_product_data" type="MageWorx\SeoCrossLinksGraphQl\Plugin\AddCrosslinksToProductPlugin" sortOrder="1"/>
</type>
<type name="Magento\CatalogGraphQl\Model\Resolver\Category\CategoryHtmlAttribute">
<plugin name="mageworx_seocrosslinks_gql_modify_category_data" type="MageWorx\SeoCrossLinksGraphQl\Plugin\AddCrosslinksToCategoryPlugin" sortOrder="1" />
<plugin name="mageworx_seocrosslinks_gql_modify_category_data" type="MageWorx\SeoCrossLinksGraphQl\Plugin\AddCrosslinksToCategoryPlugin" sortOrder="1"/>
</type>

</config>

0 comments on commit e665f26

Please sign in to comment.