I feel the second solution is a precise one as the changes will be part of th...

Contribution Date
Technology
Contribution Project
Contribution Details

I feel the second solution is a precise one as the changes will be part of the contributed module and library.
New users don't need to implement the two hooks which you suggested.

Contribution Author
Files count
0
Patches count
0