Skip to content

4.4.0

Latest

Choose a tag to compare

@DamienHarper DamienHarper released this 22 Nov 11:02
c9d831d

auditor 4.4.0

✨ What's new

Symfony 8.2 and PHP 8.6 support

auditor 4.4 is tested with PHP 8.4, 8.5 and 8.6 and Symfony 8.1 and 8.2.

The minimum Symfony version is now 8.1: every Symfony 8.0 release is affected by security
advisories fixed only in 8.1.11, and 8.0 is no longer maintained, so Composer refuses to install it.

Opt out of the runtime AuditEventSubscriber registration

Symfony 8.2 deprecates calling addListener() on the compiled event dispatcher. Auditor can now
skip registering its AuditEventSubscriber at runtime, so that a framework integration declares it
as a regular listener instead (backport of #337):

$auditor = new Auditor($configuration, $eventDispatcher, registerAuditEventSubscriber: false);

The listener must then be registered on LifecycleEvent with the
AuditEventSubscriber::PRIORITY priority (-1_000_000). auditor-bundle 7.x does this for you.
The default behaviour is unchanged.


What's Changed

New features

CI


References

Full Changelog: 4.3.1...4.4.0