•  
      request #31547 Simplify hook listening for plugins Part 2
    Infos
    #31547
    Nicolas Terray (nterray)
    2023-12-05 11:45
    2023-04-05 10:36
    33181
    Details
    Simplify hook listening for plugins Part 2

    As of today, for plugins, listening to hooks is tedious, there is a lot of copy/paste and things are scattered at different places:

    • Usage of hooks must be declared in getHooksAndCallbacks
    • It's not easy to find the hook that correspond to a callback
    • There is a lot of repetition of the event: at hook declaration (getHooksAndCallbacks), at the name of the callback, at the first parameter name.

    Using attributes, we can greatly simplify that.

    Empty
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Empty
    Reopen
    2023-03-30
    Attachments
    Empty
    References

    Follow-ups