Skip to content

Releases: The-Road-Bunch/bouncer

v2.1

16 Mar 19:28
dafacd0
Compare
Choose a tag to compare

What's Changed

  • Bouncer from strings by @danmcadams in #4
    • 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')

Full Changelog: v2.0...v2.1

v2.0

08 Mar 23:26
aa2637d
Compare
Choose a tag to compare

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

Full Changelog: v1.0.0...v2.0