Skip to content

v2.0.0-beta.2

Pre-release
Pre-release

Choose a tag to compare

@magdicom magdicom released this 09 Sep 17:09

Hooks v2.0.0-beta.2 is a breaking beta for the 2.0 line. It requires PHP 8.2+ and is installed with:

composer require magdicom/hooks:"^2.0@beta"

Read the migration guide before upgrading: https://github.com/magdicom/hooks/blob/2.0/UPGRADE.md

Highlights:

  • Public beta namespaces are now organized under Magdicom\Exceptions, Magdicom\Processors, and Magdicom\Resolvers. No beta-1 compatibility aliases or shims are included.
  • Added one-off collector finalization with processWith() and renderWith(). These collect raw listener results exactly once, support resolver-backed class names, and leave persistent processor/renderer configuration unchanged.
  • Removed the legacy mutable debugging/source-file API: debug(), setSourceFile(), and getSourceFile().
  • Improved Composer metadata and README positioning around Hooks — Extension points for PHP. Complete documentation: https://hooks.momagdi.com
  • Removed the Dependabot auto-merge workflow so dependency PRs remain reviewable.

The Laravel wrapper has not yet been migrated or integration-tested against this beta. Please report beta issues through GitHub Issues: https://github.com/magdicom/hooks/issues