Using the EvaluatesClosure trait in a plug-in

Plugin developer here, it seems that Filaments injects models/utilities in its callback functions parameters by calling the EvaluatesClosure trait. The source code is using the Reflection API, which I'm not too familiar with. Has anyone here used the trait in their plugin to give their users the opportunity to use standard utilities in their callback functions? Anything that'd be helpful to know before starting implementing this feature?
1 Reply
awcodes
awcodes5mo ago
I’m sure most of the plugins use it to some degree. I use it heavily.
Want results from more Discord servers?
Add your server