Skip to content

Commit c458c06

Browse files
committed
Added templates and action for queue generation
1 parent e290833 commit c458c06

17 files changed

+378
-0
lines changed

resources/META-INF/plugin.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
<action id="MagentoCreateUiComponentForm" class="com.magento.idea.magento2plugin.actions.generation.NewUiComponentFormAction" />
7070
<action id="NewModelsAction" class="com.magento.idea.magento2plugin.actions.generation.NewModelsAction" />
7171
<action id="MagentoCreateADataModel" class="com.magento.idea.magento2plugin.actions.generation.NewDataModelAction" />
72+
<action id="MagentoMessageQueue" class="com.magento.idea.magento2plugin.actions.generation.NewMessageQueueAction" />
7273
<add-to-group group-id="NewGroup" anchor="last"/>
7374
</group>
7475

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0"?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="urn:magento:framework:Communication/etc/communication.xsd">
4+
<topic name="${TOPIC_NAME}" request="string" response="string">
5+
<handler name="${HANDLER_NAME}"
6+
type="${HANDLER_TYPE}"
7+
method="${HANDLER_METHOD}"/>
8+
</topic>
9+
</config>

resources/fileTemplates/internal/Magento Queue Communication XML.xml.html

Whitespace-only changes.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0"?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/consumer.xsd">
4+
<consumer name="${NAME}"
5+
queue="${QUEUE_NAME}"
6+
connection="${CONNECTION}"
7+
#if(${MAX_MESSAGES})
8+
maxMessages="${MAX_MESSAGES}"
9+
#end
10+
consumerInstance="${INSTANCE}"/>
11+
</config>

resources/fileTemplates/internal/Magento Queue Consumer XML.xml.html

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0"?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/publisher.xsd">
4+
<publisher topic="${TOPIC}">
5+
<connection name="${CONNECTION}" exchange="${EXCHANGE}"/>
6+
</publisher>
7+
</config>

resources/fileTemplates/internal/Magento Queue Publisher XML.xml.html

Whitespace-only changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="urn:magento:framework-message-queue:etc/topology.xsd">
4+
<exchange name="${EXCHANGE_NAME}" type="topic" connection="${CONNECTION}">
5+
<binding id="${BINDING_ID}"
6+
topic="${TOPIC}"
7+
destinationType="queue"
8+
destination="${QUEUE}"/>
9+
</exchange>
10+
</config>

resources/fileTemplates/internal/Magento Queue Topology XML.xml.html

Whitespace-only changes.

resources/magento2/validation.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ validator.box.notEmpty=The {0} field must contain a valid selection from the dro
33
validator.package.validPath=Please specify a valid Magento 2 installation path
44
validator.alphaNumericCharacters=The {0} field must contain letters and numbers only
55
validator.alphaNumericAndUnderscoreCharacters={0} must contain letters, numbers and underscores only
6+
validator.alphaAndPeriodCharacters=The {0} field must contain alphabets and periods only
7+
validator.alphaAndDashCharacters=The {0} field must contain alphabets and dashes only
68
validator.alreadyDeclared={0} is already declared in the {1} module
79
validator.startWithNumberOrCapitalLetter=The {0} field must start with a number or a capital letter
810
validator.onlyNumbers=The {0} field must contain numbers only

0 commit comments

Comments
 (0)