Skip to content

Replace Laminas Module Manager with a custom implementation. - #210

Merged
EreMaijala merged 5 commits into
NatLibFi:devfrom
EreMaijala:dev-module-manager
Sep 21, 2026
Merged

EreMaijala merged 5 commits into
NatLibFi:devfrom
EreMaijala:dev-module-manager

Conversation

@EreMaijala

Copy link
Copy Markdown
Contributor

This eliminates dependency on Laminas MVC and its dependencies.

This eliminates dependency on Laminas MVC and its dependencies.
@EreMaijala

Copy link
Copy Markdown
Contributor Author

@demiankatz I'd appreciate any feedback you might have considering we need to something similar with VuFind.

@demiankatz demiankatz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for bringing this to my attention, @EreMaijala! See below for some very minor suggestions, but this approach makes sense to me.

Thinking ahead to VuFind, I think the biggest thing we may need to do more work on is config caching support, since you're not using that here, but it's pretty valuable for VuFind performance.

Comment thread src/RecordManager/Base/ModuleManager/ModuleManager.php Outdated
Comment thread src/RecordManager/Base/ModuleManager/ModuleManagerFactory.php Outdated
Comment thread conf/container.php
$moduleManager->initialize();

// Return service manager:
return $serviceManager;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

If you're returning the service manager, maybe you should call this container.php rather than application.php.

@EreMaijala

Copy link
Copy Markdown
Contributor Author

@demiankatz Thanks for the feedback! I've implemented the changes.

Thinking ahead to VuFind, I think the biggest thing we may need to do more work on is config caching support, since you're not using that here, but it's pretty valuable for VuFind performance.

That's true. It's not an issue here, but we'll need to manage it in VuFind.

@EreMaijala
EreMaijala merged commit 509784e into NatLibFi:dev Sep 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants