Skip to content

Commit

Permalink
Force reservationlist yaml be read from config/finna directory until …
Browse files Browse the repository at this point in the history
…new ways are implemented
  • Loading branch information
LuomaJuha committed Oct 9, 2024
1 parent cb12488 commit 78a1210
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ public function __invoke(
if (!empty($options)) {
throw new \Exception('Unexpected options sent to factory.');
}
$reservationListYaml = $container->get(\Finna\Config\YamlReader::class)
->getFinna('ReservationList.yaml', 'config/finna');
return new $requestedName(
$container->get(\Finna\ReservationList\ReservationListService::class),
$container->get(\VuFind\Auth\ILSAuthenticator::class),
$container->get(\VuFind\ILS\Connection::class),
$container->get(\VuFind\Config\YamlReader::class)->get('ReservationList.yaml')
$reservationListYaml ?: []
);
}
}

0 comments on commit 78a1210

Please sign in to comment.