-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[NEEDS REVIEW] Fix #1040 #1153
[NEEDS REVIEW] Fix #1040 #1153
Conversation
@@ -596,6 +596,9 @@ static inline int phalcon_dispatcher_fire_event(zval *return_value, zval *mgr, c | |||
if (!phalcon_memnstr_str(handler_name, SL("\\"))) { | |||
PHALCON_INIT_NVAR(camelized_class); | |||
phalcon_camelize(camelized_class, handler_name); | |||
} else if (phalcon_start_with_str(handler_name, SL("\\"))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hack: when we don't want the controller name to be mangled, we prepend it with '' (pretending that the controller is in a namespace which effectively disables mangling). This code removes the extra slash.
Applied fix for #1275 as that issue was caused by this patch |
Rebased agianst the latest 1.3.0 |
(cherry picked from commit b617bab)
See #1040
What this patch does is suppresses (un)camelize when controller name comes from the annotation parser (as in this case we will deal with the real controller name which does not need to be camelized).