-
Notifications
You must be signed in to change notification settings - Fork 36
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
use hasMethod instead of methodExists #127
Conversation
I worked against the 2 branch, as the current project is on SS4. |
Thanks for this. |
You say you worked against the If this is fixing a bug - please describe exactly what the bug is, and retarget this PR to the |
IMHO it's kind of a bug, cause normally one can decorate classes with extensions and the methods in the extensions work magically like normal methods. That's the whole reason why This fix enables you to modify a 3rd party lumberjack config the "Silverstripe way" in an |
Hmmmm I'm a fence sitter on the definition of bug vs enhancement in this case but it's a very low risk change that doesn't affect the API at all so I'm okay with it being released as a patch. |
Thanks for helping me getting the PR right and for merging it. |
No worries, thanks for your efforts submitting this 👍 |
Revert "FIX Allow extension methods to be used in lumberjack (silverstripe#127)" This reverts commit fcdfcdf.
Issue
getLumberjackGridFieldConfig
should usehasMethod
instead ofmethod_exists
#125