|
Lines 25-31
use Try::Tiny qw( catch try );
Link Here
|
| 25 |
use C4::Context; |
25 |
use C4::Context; |
| 26 |
use Koha::DateUtils qw( dt_from_string ); |
26 |
use Koha::DateUtils qw( dt_from_string ); |
| 27 |
use Koha::Exceptions; |
27 |
use Koha::Exceptions; |
| 28 |
use Koha::Plugins; |
|
|
| 29 |
use Koha::Exceptions::BackgroundJob; |
28 |
use Koha::Exceptions::BackgroundJob; |
| 30 |
|
29 |
|
| 31 |
use base qw( Koha::Object ); |
30 |
use base qw( Koha::Object ); |
|
Lines 442-447
sub plugin_types_to_classes {
Link Here
|
| 442 |
my ($self) = @_; |
441 |
my ($self) = @_; |
| 443 |
|
442 |
|
| 444 |
unless ( exists $self->{_plugin_mapping} ) { |
443 |
unless ( exists $self->{_plugin_mapping} ) { |
|
|
444 |
require Koha::Plugins; |
| 445 |
my @plugins = Koha::Plugins->new()->GetPlugins( { method => 'background_tasks', } ); |
445 |
my @plugins = Koha::Plugins->new()->GetPlugins( { method => 'background_tasks', } ); |
| 446 |
|
446 |
|
| 447 |
foreach my $plugin (@plugins) { |
447 |
foreach my $plugin (@plugins) { |
| 448 |
- |
|
|