Skip to content

Expired inverse flag added

Compare
Choose a tag to compare
@antonkomarev antonkomarev released this 04 Jan 00:30
· 111 commits to master since this release

The new logical Inverse group added. All flags from 1.x version moved to Classic logical group.

How to upgrade

  • Find all use Cog\Flag\Traits; in your controllers.
  • Replace with use Cog\Flag\Traits\Classic;

2.0.0 - 2016-01-04

Breaking changes

  • Namespaces of flag's traits received Classic at the end: Cog\Flag\Traits\Classic.
  • Namespaces of flag's scopes received Classic at the end: Cog\Flag\Scopes\Classic.

Added

  • Inverse Logic flags group. Hides entities if flag not set.
  • Added Inverse\HasExpiredFlag trait.
  • Added Inverse\ExpiredFlagScope global scope.

View the changes from 1.5.0 to 2.0.0