[Koha-bugs] [Bug 24631] Plugin metadata should be outside the main class

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Apr 24 14:21:51 CEST 2020


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

Marcel de Rooy <m.de.rooy at rijksmuseum.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |m.de.rooy at rijksmuseum.nl

--- Comment #24 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Why not do something like this in a plugin with an our $metadata definition:
sub new {
    my ($class, $params) = @_;
    return $class->SUPER::new($params, $metadata);
}
Or when a new style plugin has a manifest file, do:
sub new {
    my ($class, $params) = @_;
    return $class->SUPER::new($params, IO::File->new(FILENAME) );
}
And let Plugin::Base::new handle either the hashref or the filehandle?

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


More information about the Koha-bugs mailing list