Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically load sprinkle's Middleware #617

Closed
lcharette opened this issue Jan 20, 2017 · 2 comments
Closed

Automatically load sprinkle's Middleware #617

lcharette opened this issue Jan 20, 2017 · 2 comments
Labels
core feature request Feature request
Milestone

Comments

@lcharette
Copy link
Member

lcharette commented Jan 20, 2017

Currently, the only way for a Sprinkle to add a global middleware is to edit public/index.php. A Sprinkle should be able to register it's own middleware to avoid editing a core UF file.

This currently have an impact on this Sprinkle : https://github.com/lcharette/UF_ConfigManager#edit-indexphp

@alexweissman
Copy link
Member

version 4.1 will remodel Sprinkle bootstrap classes as Event subscribers, which means that Sprinkles can subscribe to the new onAddGlobalMiddleware event to add middleware.

@alexweissman
Copy link
Member

Implemented in develop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core feature request Feature request
Projects
None yet
Development

No branches or pull requests

2 participants