[Koha-bugs] [Bug 30410] Add a way for plugins to register background tasks
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Apr 4 08:36:22 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30410
--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
(In reply to Tomás Cohen Arazi from comment #4)
> There's a clear example in the patches.
> Thanks
My bad. I had already read the main patch but not the unit tests patch. I
should've thought to look there, although I didn't think the example was that
clear. I had to re-read it a few times.
I suppose the plugin's "name" isn't usable since it's human-friendly and not
machine friendly.
A default method inherited from Koha::Plugins::Base that does something like
this might be useful:
sub namespace {
my $namespace = lc(__PACKAGE__);
$namespace =~ s/::/_/g
return $namespace
}
I suppose free text and auto-generated both have their pros and cons...
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list