[Koha-bugs] [Bug 28026] Add a 'call_recursive' method to Koha::Plugins

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jul 2 03:05:32 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28026

--- Comment #24 from David Cook <dcook at prosentient.com.au> ---
I think I understand a little better now, although I still don't understand the
logic flow. You'd have to load the plugin to override the original code, but
your example doesn't say when that would happen. Unless you're preloading
modules at startup time (which will only work with Plack and could mean large
worker processes), then you're going to have to load at script load time, but
then you'll probably want to be targeting particular plugins for particular
situations, and then I'm not sure that you're actually gaining any advantage
over the current way of doing things?

Hook::LexWrap is also black magic. Perl lets a person do all kinds of wild
things, but it reminds me of Jurassic Park: "Your scientists were so
preoccupied with whether or not they could, they didn​'t stop to think if they
should."

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list