Skip to content

Commit

Permalink
Update the way plugin class is instantiated (changes from 19605)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammopt committed Oct 30, 2024
1 parent 7bfae48 commit e5bfbc5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sub run {
$self->{dry_run} = $options->{dry_run};
$self->{env} = $options->{env};

my $rd = Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new_backend( { logger => Koha::ILL::Request::Logger->new } );
my $rd = Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new->new_ill_backend( { logger => Koha::ILL::Request::Logger->new } );

my $plugin = Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new();
my $config = decode_json( $plugin->retrieve_data("reprintsdesk_config") || {} );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sub run {
$self->{dry_run} = $options->{dry_run};
$self->{env} = $options->{env};
$self->{rd} =
Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new_backend( { logger => Koha::ILL::Request::Logger->new } );
Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new->new_ill_backend( { logger => Koha::ILL::Request::Logger->new } );

# Get branches that contain not 'COMP' requests
# FIXME: There must be a prettier/better way of doing this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sub run {
$self->{dry_run} = $options->{dry_run};
$self->{env} = $options->{env};

my $rd = Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new_backend( { logger => Koha::ILL::Request::Logger->new } );
my $rd = Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new->new_ill_backend( { logger => Koha::ILL::Request::Logger->new } );
my $response = $rd->{_api}->User_GetOrderHistory(2);
my $body = from_json( $response->decoded_content );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ sub run {
$self->{dry_run} = $options->{dry_run};
$self->{env} = $options->{env};

my $rd = Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new_backend( { logger => Koha::ILL::Request::Logger->new } );
my $rd = Koha::Plugin::Com::PTFSEurope::ReprintsDesk->new->new_ill_backend( { logger => Koha::ILL::Request::Logger->new } );

# Prepare the query
my $dbh = C4::Context->dbh;
Expand Down

0 comments on commit e5bfbc5

Please sign in to comment.