Skip to content

Conversation

@mra9994
Copy link
Contributor

@mra9994 mra9994 commented Oct 1, 2025

Summary

This PR introduces the ability to configure custom module resolvers in Modulite.
Developers can now implement their own module resolution logic by providing a class that implements
PanicDevs\Modulite\Contracts\ModuleResolverInterface.

Main Changes:

  • Config (config/modulite.php)

    • Updated modules.approach to support:
      • panicdevsPanicDevsModuleResolver
      • nwidartNwidartModuleResolver
      • custom → Must implement ModuleResolverInterface
  • Core Service Registration

    • Introduced CreateModuleResolver action to dynamically resolve module approach.
    • Refactored hardcoded resolver selection logic.
  • Console Command Updates (ModuliteStatusCommand::class)

    • Previously, this command only worked with the nwidart resolver.
    • When using panicdevs it didn’t return any results.
    • Now, displayModuleStatus() fully relies on ModuleResolverInterface.
  • Contracts

    • Added shouldRegisterPanelsBeforeFilament() to ModuleResolverInterface.

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.

1 participant