Skip to content

Commit

Permalink
Migrated to exact module dependency, over from magento version specif…
Browse files Browse the repository at this point in the history
…ication. Supports 2.3.5.
  • Loading branch information
alfredsgenkins committed Sep 4, 2020
1 parent fae040b commit 92b736a
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 33 deletions.
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"OSL-3.0"
],
"require": {
"magento/magento2-base": "^2.3.5",
"magento/framework": "*",
"magento/module-cms": "*",
"magento/module-store": "*",
"magento/module-catalog": "*",
"magento/module-backend": "*",
"magento/module-captcha": "*",
"magento/module-media-storage": "*",
"magento/module-ui": "*",
"scandiweb/module-core": "~0.1.2"
},
"autoload": {
Expand All @@ -17,4 +24,4 @@
"ScandiPWA\\MenuOrganizer\\": "src"
}
}
}
}
12 changes: 7 additions & 5 deletions src/etc/acl.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?xml version="1.0"?>
<!--
/**
* @category ScandiPWA
* @package ScandiPWA\MenuOrganizer
* @author Alfreds Genkins alfreds@scandiweb.com
* @copyright Copyright (c) 2015 Scandiweb, Ltd (http://scandiweb.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @link https://github.com/scandipwa/quote-graphql
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
Expand Down
13 changes: 7 additions & 6 deletions src/etc/adminhtml/events.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* @category ScandiPWA
* @package ScandiPWA\MenuOrganizer
* @author Ernests Verins ernests.verins@scandiweb.com
* @copyright Copyright (c) 2015 Scandiweb, Ltd (http://scandiweb.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @link https://github.com/scandipwa/quote-graphql
*/
-->

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
<event name="cms_page_save_after">
<observer name="update_menu" instance="ScandiPWA\MenuOrganizer\Observer\UpdatePageIdentifier" />
Expand Down
12 changes: 7 additions & 5 deletions src/etc/adminhtml/menu.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?xml version="1.0"?>
<!--
/**
* @category ScandiPWA
* @package ScandiPWA\MenuOrganizer
* @author Dmitrijs Sitovs <info@scandiweb.com / dmitrijssh@scandiweb.com / dsitovs@gmail.com>
* @copyright Copyright (c) 2015 Scandiweb, Ltd (http://scandiweb.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @link https://github.com/scandipwa/quote-graphql
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
Expand Down
12 changes: 7 additions & 5 deletions src/etc/adminhtml/routes.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?xml version="1.0"?>
<!--
/**
* @category ScandiPWA
* @package ScandiPWA\MenuOrganizer
* @author Dmitrijs Sitovs <info@scandiweb.com / dmitrijssh@scandiweb.com / dsitovs@gmail.com>
* @copyright Copyright (c) 2015 Scandiweb, Ltd (http://scandiweb.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @link https://github.com/scandipwa/quote-graphql
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
Expand Down
11 changes: 11 additions & 0 deletions src/etc/db_schema.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @link https://github.com/scandipwa/quote-graphql
*/
-->
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="scandiweb_menumanager_menu" resource="default" engine="innodb">
<column xsi:type="smallint" name="menu_id" padding="5" unsigned="true" nullable="false" identity="true"/>
Expand Down
12 changes: 7 additions & 5 deletions src/etc/di.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?xml version="1.0"?>
<!--
/**
* @category ScandiPWA
* @package ScandiPWA\MenuOrganizer
* @author Alfreds Genkins alfreds@scandiweb.com
* @copyright Copyright (c) 2015 Scandiweb, Ltd (http://scandiweb.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @link https://github.com/scandipwa/quote-graphql
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
Expand Down
19 changes: 14 additions & 5 deletions src/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
<?xml version="1.0"?>
<!--
/**
* @category ScandiPWA
* @package ScandiPWA\MenuOrganizer
* @author Alfreds Genkins alfreds@scandiweb.com
* @copyright Copyright (c) 2015 Scandiweb, Ltd (http://scandiweb.com)
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* ScandiPWA - Progressive Web App for Magento
*
* Copyright © Scandiweb, Inc. All rights reserved.
* See LICENSE for license details.
*
* @license OSL-3.0 (Open Software License ("OSL") v. 3.0)
* @link https://github.com/scandipwa/quote-graphql
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="ScandiPWA_MenuOrganizer" setup_version="0.1.0">
<sequence>
<module name="Magento_Cms" />
<module name="Magento_Store" />
<module name="Magento_Catalog" />
<module name="Magento_Backend" />
<module name="Magento_Captcha" />
<module name="Magento_MediaStorage" />
<module name="Magento_Ui" />
<module name="Scandiweb_Core"/>
</sequence>
</module>
Expand Down

0 comments on commit 92b736a

Please sign in to comment.