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

Bouncer from strings #4

Merged
merged 11 commits into from
Mar 16, 2023
Merged

Bouncer from strings #4

merged 11 commits into from
Mar 16, 2023

Conversation

danmcadams
Copy link
Member

  • Create new factory Bouncer use this instead of the old BouncerFactory
    • Bouncer::allow(array|string $subjects = []) will create an AllowBouncer
    • Bouncer::deny(array|string $subjects = []) will create a DenyBouncer
  • Bouncers can now be created by passing a string separated by semi-colons
    • example: Bouncer::allow('subject_one;subject_two;subject_three')

@danmcadams danmcadams added the enhancement New feature or request label Mar 16, 2023
@danmcadams danmcadams merged commit dafacd0 into main Mar 16, 2023
@danmcadams danmcadams deleted the bouncer-from-strings branch March 16, 2023 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants