Skip to content

Releases: tattersoftware/codeigniter4-handlers

Search Revamp

19 Sep 20:41
c509ca7
Compare
Choose a tag to compare

In an effort to make searching easier and more intuitive, this PR adjusts Handlers to use methods similar to CodeIgniter\Model.

  • Methods all() and named($name) are now deprecated in favor or findAll() and find($name) respectively.
  • Search criteria has been revamped to accept operators, e.g.: $handlers->where(['cost >' => 5])->first()
  • Searching now has a "short circuit" option for matching one criterium: $handlers->orWhere(['extension' => '*'])->findAll()

Add named lookup

17 Sep 15:50
975ac0e
Compare
Choose a tag to compare

Adds the ability to look up a specific handler by name.

Registration

14 Sep 23:30
3bf7893
Compare
Choose a tag to compare

This release reinstates Handler Registration which was removed with the database dependency. Handlers can now implement an option register() method to be executed when Handlers::register() is called. While there are no restrictions, the current intent is that register() will add the attributes to the database.

Code Refactor

09 Sep 17:56
e2d9f71
Compare
Choose a tag to compare

This is a complete refactor of the module. The premise is still the same, but instead of loading classes into the database they are detected and queried dynamically in place, a sort of distributed-filesystem database. All implementations will need to be updated - please see the new docs.

Additional changes:

  • Adds and implements PHPStan for static code analysis
  • Updates tests and test cases to framework scaffolding
  • Adds GitHub Actions and Dependabot

Error handling, Bugs

27 Aug 19:06
Compare
Choose a tag to compare
v1.0.1

Add error handling; Verify magic get exists

Initial release

09 Aug 02:53
Compare
Choose a tag to compare
v1.0.0

Bugfix registrations