Skip to content

Allow a feature to register middleware groups - #23

Merged
edalzell merged 3 commits into
edalzell:mainfrom
marcorieser:feature/middleware-groups
Nov 8, 2026
Merged

edalzell merged 3 commits into
edalzell:mainfrom
marcorieser:feature/middleware-groups

Conversation

@marcorieser

@marcorieser marcorieser commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Adds statamic.middleware_groups and statamic.prepend_middleware_groups options. Extensions pushes or prepends the middleware the way Statamic's AddonServiceProvider does for $middlewareGroups, in the booted() callback it already uses.

README: documents both in a "Middleware groups" section.

Closes #22

@edalzell
edalzell merged commit 0f65cbf into edalzell:main Nov 8, 2026
10 checks passed
@edalzell edalzell mentioned this pull request Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow a feature to register middleware groups, like an addon's $middlewareGroups

2 participants