diff --git a/COMMANDS.md b/COMMANDS.md index 388136f..05a9475 100644 --- a/COMMANDS.md +++ b/COMMANDS.md @@ -23,6 +23,7 @@ This way Namespaces and vendor will be automatically filled in. Available templates: * **M2 class**: Default M2 php class. +* **M2 class - Backend Controller**: PHP class that extends AbstractAction. * **M2 class - Block**: PHP class that extends Template class. * **M2 class - Helper**: PHP class that extends AbstractHelper * **M2 class - Observer**: PHP class that implements ObserverInterface @@ -70,6 +71,13 @@ Available commands: * **m2divirtual**: Create an virtual type * **m2dipreference**: Create an preference(rewrite) +## M2 Events +Available templates: +* **M2 Events**: Create an events file. + +Available commands: +* **m2eventobserver**: Create an observer + ## M2 Extension Attribute Available templates: * **M2 Extension Attributes XML**: Create an extension attribute file with default structure. @@ -78,6 +86,13 @@ Available templates: Available templates: * **M2 Layout XML**: Create an layout XML with default structure +## M2 Menu +Available templates: +* **M2 Menu XML**: Create an layout XML with default structure + +Available commands: +* **m2menuadd**: Create an menu tag + ## M2 Module Available templates: * **M2 Module XML**: Create an module XML file that has default structure diff --git a/README.md b/README.md index 450f90f..567992a 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,8 @@ At this moment there have been live templates created for: * ACL * DB Schema * DI +* Events +* Menu * Module * Phtml (WIP) * Registration @@ -32,6 +34,7 @@ These can be enabled and disabled for if you want to use them or not. If no phps At this moment there have been templates created for: * ACL * Class +* Class - Backend Controller * Class - Block * Class - Helper * Class - Observer @@ -39,10 +42,13 @@ At this moment there have been templates created for: * Config * DB Schema * DI +* Events * Extension Attributes * Layout +* Menu * Module * Registration +* Routes * Sales * System * System Include diff --git a/files/fileTemplates/M2-Class-Backend-Controller.php b/files/fileTemplates/M2-Class-Backend-Controller.php new file mode 100644 index 0000000..b372d9f --- /dev/null +++ b/files/fileTemplates/M2-Class-Backend-Controller.php @@ -0,0 +1,19 @@ + +#parse("M2-XML-File-Header") + + #[[$END$]]# + diff --git a/files/fileTemplates/M2-Menu.xml b/files/fileTemplates/M2-Menu.xml new file mode 100644 index 0000000..29b379f --- /dev/null +++ b/files/fileTemplates/M2-Menu.xml @@ -0,0 +1,7 @@ + +#parse("M2-XML-File-Header") + + + #[[$END$]]# + + \ No newline at end of file diff --git a/files/fileTemplates/M2-Routes.xml b/files/fileTemplates/M2-Routes.xml new file mode 100644 index 0000000..eeeb00c --- /dev/null +++ b/files/fileTemplates/M2-Routes.xml @@ -0,0 +1,5 @@ + +#parse("M2-XML-File-Header") + + #[[$END$]]# + diff --git a/files/templates/M2-events.xml b/files/templates/M2-events.xml new file mode 100644 index 0000000..c579b46 --- /dev/null +++ b/files/templates/M2-events.xml @@ -0,0 +1,10 @@ + + + \ No newline at end of file diff --git a/files/templates/M2-menu.xml b/files/templates/M2-menu.xml new file mode 100644 index 0000000..61951a2 --- /dev/null +++ b/files/templates/M2-menu.xml @@ -0,0 +1,14 @@ + + + \ No newline at end of file