Skip to content

feat: optional flarum/audit integration#80

Merged
imorland merged 5 commits into
2.xfrom
im/audit-integration
Jul 8, 2026
Merged

feat: optional flarum/audit integration#80
imorland merged 5 commits into
2.xfrom
im/audit-integration

Conversation

@imorland

@imorland imorland commented Jul 8, 2026

Copy link
Copy Markdown
Member

Adds an optional flarum/audit integration, moved out of flarum/audit where it was previously bundled. Mirrors how flarum/suspend ships its own audit integration: a Conditional on flarum-audit using the public Flarum\Audit\Extend\Audit extender, the log labels shipped under the flarum-audit.lib.browser.* locale namespace, and an AuditTest covering it.

flarum/audit is added to require-dev only — at runtime it is an optional dependency (the integration is a no-op unless flarum-audit is enabled).

Companion to flarum/framework#4807, which removes this integration from flarum/audit. To avoid duplicate logging, these should be released together.

This repo had no integration test suite yet, so minimal test infrastructure (phpunit config, setup.php, autoload-dev, composer test scripts) was scaffolded to host the AuditTest.

@imorland
imorland force-pushed the im/audit-integration branch from 5d22434 to dab47cc Compare July 8, 2026 13:08
@imorland
imorland merged commit dd0719a into 2.x Jul 8, 2026
20 checks passed
@imorland
imorland deleted the im/audit-integration branch July 8, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants