Skip to content

Commit cc895bd

Browse files
author
Oleksii Korshenko
authored
MAGETWO-85770: #5035 Cannot subscribe to events with a number in name #12758
2 parents c1f50ad + 45739eb commit cc895bd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

lib/internal/Magento/Framework/Event/Test/Unit/Config/_files/valid_events.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@
1212
<event name="authorization_roles_save_before">
1313
<observer name="second_name" instance="Some_Test_Value_Two" />
1414
</event>
15+
<event name="authorization_roles_save_before123">
16+
<observer name="second_name" instance="Some_Test_Value_Two" />
17+
</event>
1518
</config>

lib/internal/Magento/Framework/Event/etc/events.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
<xs:simpleType name="eventName">
6161
<xs:annotation>
6262
<xs:documentation>
63-
Event name can contain only [a-zA-Z_].
63+
Event name can contain only [a-zA-Z0-9_].
6464
</xs:documentation>
6565
</xs:annotation>
6666
<xs:restriction base="xs:string">
67-
<xs:pattern value="[a-zA-Z_]+" />
67+
<xs:pattern value="[a-zA-Z0-9_]+" />
6868
</xs:restriction>
6969
</xs:simpleType>
7070
</xs:schema>

0 commit comments

Comments
 (0)