Skip to content
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

Fix missing double dash in namespaced Stimulus outlets #1148

Merged
merged 1 commit into from Oct 2, 2023

Conversation

gregberger
Copy link

@gregberger gregberger commented Sep 27, 2023

Q A
Bug fix? yes
New feature? no
Tickets /
License MIT

In StimulusTwigExtension, namespaced (ie: in sub directories) stimulus controllers didn't work as the regex in StimulusAttribute::normalizeKeyName removes the double-dash needed to mark
namespace separations.

As the outlet value is the name of a controller, I suggest to use normalizeControllerName from the same class, instead.

@weaverryan
Copy link
Member

I like it - make sense. Thank you Greg!

@weaverryan weaverryan merged commit a760b37 into symfony:2.x Oct 2, 2023
36 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants