Skip to content

Commit

Permalink
Adjusted variable name in reservationlistservice
Browse files Browse the repository at this point in the history
  • Loading branch information
LuomaJuha committed Jan 15, 2025
1 parent ae47fcd commit 61d0be0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class ReservationListService implements TranslatorAwareInterface, DbServiceAware
* @param ?RecordCache $recordCache Record cache (optional)
* @param ?Container $session Session container for remembering
* state (optional)
* @param ?array $yamlConfig Reservation list yaml config
* @param ?array $reservationListConfig ReservationList.yaml as array
*/
public function __construct(
protected FinnaResourceListServiceInterface $resourceListService,
Expand All @@ -128,7 +128,7 @@ public function __construct(
protected RecordLoader $recordLoader,
protected ?RecordCache $recordCache = null,
protected ?Container $session = null,
protected ?array $yamlConfig = []
protected ?array $reservationListConfig = []
) {
}

Expand Down Expand Up @@ -554,12 +554,12 @@ public function getListProperties(
string $institution,
string $listIdentifier
): array {
foreach ($this->yamlConfig['Institutions'][$institution]['Lists'] ?? [] as $list) {
foreach ($this->reservationListConfig['Institutions'][$institution]['Lists'] ?? [] as $list) {
$list = $this->ensureListKeys($list);
if ($list['Identifier'] === $listIdentifier) {
return [
'properties' => $list,
'institution_information' => $this->yamlConfig['Institutions'][$institution]['Information'] ?? [],
'institution_information' => $this->reservationListConfig['Institutions'][$institution]['Information'] ?? [],
'translation_keys' => [
'title' => "ReservationList::list_title_{$institution}_{$listIdentifier}",
'description' => "ReservationList::list_description_{$institution}_{$listIdentifier}",
Expand Down

0 comments on commit 61d0be0

Please sign in to comment.