Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Add exception conditions #4

Open
sagikazarmark opened this issue Mar 19, 2015 · 1 comment
Open

Add exception conditions #4

sagikazarmark opened this issue Mar 19, 2015 · 1 comment

Comments

@sagikazarmark
Copy link

By the time the middleware is pushed to the stack the application might not be aware of some details which could serve as an exception. For example if the requested route is a login page to an admin panel the application should allow the request instead of showing the maintenance page. A similar condition can be a logged in administrator. These are runtime details, thus there should be a way to match against these conditions runtime.

@davedevelopment
Copy link
Member

I'd be reluctant to grow this lib to cater for several specific conditions, but would be happy to accept patches that involve injecting a callable $grantAccessRegardless or something

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants