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

Force-resolving of Bouncer on each boot is redundant #580

Open
Amegatron opened this issue Dec 16, 2021 · 0 comments
Open

Force-resolving of Bouncer on each boot is redundant #580

Amegatron opened this issue Dec 16, 2021 · 0 comments

Comments

@Amegatron
Copy link

\Silber\Bouncer\BouncerServiceProvider forces Bouncer to be resolved on each boot, which is redundant. It, in turn, needs to have Gate resolved. But since some or many use-cases of the application in whole don't even require this gate and user permissions in general, this resolve-chain is redundant in whole. Given Gate itself can possibly have huge configuration, this can lead to problems.

Perhaps, Bouncer could be "bound" to Gate using something like "callAfterResolving" or similar?

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

No branches or pull requests

2 participants