Skip to content

Commit

Permalink
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
Browse files Browse the repository at this point in the history
…nto PR-2020-07-21
  • Loading branch information
o-iegorov committed Jul 22, 2020
2 parents d5d4b31 + bc9e5cf commit 0afb093
Show file tree
Hide file tree
Showing 8 changed files with 161 additions and 355 deletions.
3 changes: 3 additions & 0 deletions app/code/Magento/CatalogRuleGraphQl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CatalogRuleGraphQl

The *Magento_CatalogRuleGraphQl* module applies catalog rules to products for GraphQL requests.
24 changes: 24 additions & 0 deletions app/code/Magento/CatalogRuleGraphQl/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "magento/module-catalog-rule-graph-ql",
"description": "N/A",
"type": "magento2-module",
"require": {
"php": "~7.1.3||~7.2.0||~7.3.0",
"magento/framework": "*"
},
"suggest": {
"magento/module-catalog-rule": "*"
},
"license": [
"OSL-3.0",
"AFL-3.0"
],
"autoload": {
"files": [
"registration.php"
],
"psr-4": {
"Magento\\CatalogRuleGraphQl\\": ""
}
}
}
15 changes: 15 additions & 0 deletions app/code/Magento/CatalogRuleGraphQl/etc/graphql/events.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="catalog_product_get_final_price">
<observer name="catalogrule" instance="Magento\CatalogRule\Observer\ProcessFrontFinalPriceObserver" />
</event>
<event name="prepare_catalog_product_collection_prices">
<observer name="catalogrule" instance="Magento\CatalogRule\Observer\PrepareCatalogProductCollectionPricesObserver" />
</event>
</config>
10 changes: 10 additions & 0 deletions app/code/Magento/CatalogRuleGraphQl/etc/module.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_CatalogRuleGraphQl" />
</config>
9 changes: 9 additions & 0 deletions app/code/Magento/CatalogRuleGraphQl/registration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

use Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register(ComponentRegistrar::MODULE, 'Magento_CatalogRuleGraphQl', __DIR__);
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
"magento/module-catalog-inventory": "*",
"magento/module-catalog-inventory-graph-ql": "*",
"magento/module-catalog-rule": "*",
"magento/module-catalog-rule-graph-ql": "*",
"magento/module-catalog-rule-configurable": "*",
"magento/module-catalog-search": "*",
"magento/module-catalog-url-rewrite": "*",
Expand Down
Loading

0 comments on commit 0afb093

Please sign in to comment.