-
-
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
Annotations router custom action pre-format callback #14819
Annotations router custom action pre-format callback #14819
Conversation
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.
@BeMySlaveDarlin could you please update the 4.1 changelog with this functionality?
Other than that this is ready
Looks like it was lost through rebase. Added. |
Thank you @BeMySlaveDarlin |
Hello!
In raising this pull request, I confirm the following:
Added method to set callback handler to pre-format action name in Annotation Router.
Default behavior of action name processing:
PostsController::getLastUpdatedAction()
equals to uri/posts/getlastupdated
via strtolower formatting.New behavior allows to set callback, which does user defined pre-format to action name:
PostsController::getLastUpdatedAction()
equals to uri/posts/get-last-updated
via uncamelize passed as callbackThanks