Skip to content

Sort module namespaces in decending order#138

Open
skylerkatz wants to merge 1 commit intoInterNACHI:mainfrom
skylerkatz:model-ordering
Open

Sort module namespaces in decending order#138
skylerkatz wants to merge 1 commit intoInterNACHI:mainfrom
skylerkatz:model-ordering

Conversation

@skylerkatz
Copy link
Copy Markdown
Contributor

In our app we have two modules: App\Reports and App\Reports\SomeSpecificReport. When the module registry is trying to guess the moduleForClass it sometimes pulls App\Reports even though the $fqcn is App\Reports\SomeSpecificReport\SomeClass.

Here we just sort in descending order so that the longest namespace is first.

@skylerkatz skylerkatz requested a review from inxilpro April 24, 2026 15:30
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