Skip to content

Instantly share code, notes, and snippets.

@phaelfp
Forked from Vinai/M2 acl.xml
Created March 29, 2019 22:39
Show Gist options
  • Select an option

  • Save phaelfp/a9fdee32b13861583cdb331a8b4939d2 to your computer and use it in GitHub Desktop.

Select an option

Save phaelfp/a9fdee32b13861583cdb331a8b4939d2 to your computer and use it in GitHub Desktop.

Revisions

  1. @Vinai Vinai revised this gist Jan 30, 2019. 3 changed files with 5 additions and 5 deletions.
    2 changes: 1 addition & 1 deletion M2 composer.json
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    "name": "${COMPOSER_NAME}",
    "description": "${DESCRIPTION}",
    "require": {
    "php": "~5.6.0|~7.0.0"
    "php": "~7.1.0|~7.2.0"
    },
    "type": "magento2-module",
    "license": [
    2 changes: 1 addition & 1 deletion M2 module.xml
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="${MODULE_NAME}" setup_version="0.1.0">
    <module name="${MODULE_NAME}" setup_version="0.0.1">
    </module>
    </config>
    6 changes: 3 additions & 3 deletions M2 routes.xml
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="standard">
    <route id="${ROUTE_NAME}" frontName="${ROUTE_NAME}">
    <module name="${MODULE_NAME}" />
    <route id="#if (${Route_Id} != '')${Route_Id}#else${Front_Name}#end" frontName="#if (${Front_Name} != '')${Front_Name}#else${Route_Id}#end">
    <module name="${Module_Name}" />
    </route>
    </router>
    </config>
    </config>
  2. @Vinai Vinai revised this gist Feb 9, 2016. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions M2 system.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>

    </system>
    </config>
  3. @Vinai Vinai revised this gist Feb 7, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion M2 composer.json
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    "name": "${COMPOSER_NAME}",
    "description": "${DESCRIPTION}",
    "require": {
    "php": "~5.5.0|~5.6.0|~7.0.0"
    "php": "~5.6.0|~7.0.0"
    },
    "type": "magento2-module",
    "license": [
  4. @Vinai Vinai created this gist Feb 6, 2016.
    10 changes: 10 additions & 0 deletions M2 acl.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
    <acl>
    <resources>
    <resource id="Magento_Backend::admin">

    </resource>
    </resources>
    </acl>
    </config>
    17 changes: 17 additions & 0 deletions M2 composer.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    {
    "name": "${COMPOSER_NAME}",
    "description": "${DESCRIPTION}",
    "require": {
    "php": "~5.5.0|~5.6.0|~7.0.0"
    },
    "type": "magento2-module",
    "license": [
    "BSD-3-Clause"
    ],
    "autoload": {
    "files": [ "registration.php" ],
    "psr-4": {
    "${NAMESPACE}\\\\${MODULE_NAME}\\": ""
    }
    }
    }
    4 changes: 4 additions & 0 deletions M2 di.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">

    </config>
    6 changes: 6 additions & 0 deletions M2 events.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="${EVENT_NAME}">
    <observer name="${OBSERVER_NAME}" instance="${OBSERVER_CLASS}" shared="false"/>
    </event>
    </config>
    6 changes: 6 additions & 0 deletions M2 layout.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    <?xml version="1.0"?>
    <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>

    </body>
    </page>
    5 changes: 5 additions & 0 deletions M2 module.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <module name="${MODULE_NAME}" setup_version="0.1.0">
    </module>
    </config>
    5 changes: 5 additions & 0 deletions M2 registration.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    <?php

    use Magento\Framework\Component\ComponentRegistrar;

    ComponentRegistrar::register(ComponentRegistrar::MODULE, '${MODULE_NAME}', __DIR__);
    8 changes: 8 additions & 0 deletions M2 routes.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <?xml version="1.0"?>
    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="standard">
    <route id="${ROUTE_NAME}" frontName="${ROUTE_NAME}">
    <module name="${MODULE_NAME}" />
    </route>
    </router>
    </config>
    5 changes: 5 additions & 0 deletions M2 webapi.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    <?xml version="1.0"?>
    <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">

    </routes>