Skip to content

Use config array instead of object for Blender Backend module - #5654

Open
rtloftus wants to merge 14 commits into
vufind-org:devfrom
rtloftus:blender
Open

Use config array instead of object for Blender Backend module#5654
rtloftus wants to merge 14 commits into
vufind-org:devfrom
rtloftus:blender

Conversation

@rtloftus

@rtloftus rtloftus commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@rtloftus rtloftus changed the title Use config array instead of object for Blender Backend modules Use config array instead of object for Blender and EDS Backend modules Sep 9, 2026

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for splitting this out, @rtloftus! See below for a couple of thoughts/next steps.

Comment thread module/VuFindSearch/src/VuFindSearch/Backend/Blender/Backend.php Outdated
@rtloftus
rtloftus marked this pull request as draft September 9, 2026 18:15
@rtloftus rtloftus changed the title Use config array instead of object for Blender and EDS Backend modules Use config array instead of object for Blender Backend modules Sep 10, 2026
@rtloftus
rtloftus requested a review from demiankatz September 10, 2026 15:17
@rtloftus
rtloftus marked this pull request as ready for review September 10, 2026 15:17
@rtloftus rtloftus changed the title Use config array instead of object for Blender Backend modules Use config array instead of object for Blender Backend module Sep 10, 2026

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @rtloftus. The factory still needs to be updated; beyond that, see below for a few smaller points.

Comment thread module/VuFindSearch/src/VuFindSearch/Backend/Blender/Backend.php Outdated
Comment thread module/VuFindSearch/src/VuFindSearch/Backend/Blender/Backend.php Outdated
@demiankatz demiankatz added this to the 12.0 milestone Sep 10, 2026
@demiankatz demiankatz added the architecture pull requests that involve significant refactoring / architectural changes label Sep 10, 2026
rtloftus and others added 6 commits September 10, 2026 14:02
…Json/RecordCollection.php

Co-authored-by: Demian Katz <demian.katz@villanova.edu>
…Json/RecordCollection.php

Co-authored-by: Demian Katz <demian.katz@villanova.edu>
…Json/RecordCollection.php

Co-authored-by: Demian Katz <demian.katz@villanova.edu>
@rtloftus
rtloftus requested a review from demiankatz September 10, 2026 18:27

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @rtloftus -- I think we're nearly done here, but see below for a couple more things!

Comment on lines +111 to +112
$backendConfig = $blenderConfig['Backends']
? $blenderConfig['Backends'] : [];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be simplified:

Suggested change
$backendConfig = $blenderConfig['Backends']
? $blenderConfig['Backends'] : [];
$backendConfig = $blenderConfig['Backends'] ?? [];

*
* @param \VuFind\Config\Config $config Configuration
* @param array $mappings Mappings configuration
* @param ?array $config Configuration

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably worth introducing property promotion here while we're changing types...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture pull requests that involve significant refactoring / architectural changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants