Releases: The-Road-Bunch/bouncer
Releases · The-Road-Bunch/bouncer
v2.1
What's Changed
- Bouncer from strings by @danmcadams in #4
- Create new factory
Bouncer
use this instead of the oldBouncerFactory
Bouncer::allow(array|string $subjects = [])
will create an AllowBouncerBouncer::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')
- example:
- Create new factory
Full Changelog: v2.0...v2.1
v2.0
This version is NOT backwards compatible.
If you're for some reason using version 1, you'll need to keep using it, or change your code. This won't happen again, it's just the first code was written a long time ago and was way more complicated than necessary and had some out-of-date practices.
What's Changed
- Bouncer v2 by @danmcadams in #3
- Now requires PHP 8.1
- Implemented BouncerInterface
- Bouncers are now created via the BouncerFactory with a provided rule (Allow/Deny) and a list of strings
- No more weird named string collections.
- See README.md for more information
New Contributors
- @danmcadams made their first contribution in #1
Full Changelog: v1.0.0...v2.0