Skip to content

magento/magento2#5035 Cannot subscribe to events with a number in name #12745

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,7 @@
<event name="authorization_roles_save_before">
<observer name="second_name" instance="Some_Test_Value_Two" />
</event>
<event name="authorization_roles_save_before123">
<observer name="second_name" instance="Some_Test_Value_Two" />
</event>
</config>
4 changes: 2 additions & 2 deletions lib/internal/Magento/Framework/Event/etc/events.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@
<xs:simpleType name="eventName">
<xs:annotation>
<xs:documentation>
Event name can contain only [a-zA-Z_].
Event name can contain only [a-zA-Z0-9_].
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[a-zA-Z_]+" />
<xs:pattern value="[a-zA-Z0-9_]+" />
</xs:restriction>
</xs:simpleType>
</xs:schema>