Koha-clms/Koha/SearchEngine/Search.pm

13 lines
276 B
Perl

package Koha::SearchEngine::Search;
use Moose;
use C4::Context;
use Moose::Util qw( apply_all_roles );
sub BUILD {
my $self = shift;
my $syspref = C4::Context->preference("SearchEngine");
apply_all_roles( $self, "Koha::SearchEngine::${syspref}::Search" );
};
1;