Logo
Explore Help
Sign In
fa/breadcrumb-the-shire
1
0
Fork 1
You've already forked breadcrumb-the-shire
Code Issues Pull Requests 1 Actions Packages Projects Releases Wiki Activity
Files
main
breadcrumb-the-shire/core/Service/Audit/NullApiSystemAuditReporter.php

18 lines
347 B
PHP
Raw Permalink Normal View History

refactor(audit): decouple API audit classes from core via interfaces Core code (lib/) no longer imports any MintyPHP\Module\Audit\* classes directly. New ApiAuditServiceInterface and ApiSystemAuditReporterInterface follow the existing pattern (interface + null implementation in core, concrete binding from module registrar). DoctorRunner and helpers/app.php now resolve through DI interfaces, ensuring the audit module remains fully optional. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-13 19:19:17 +02:00
<?php
namespace MintyPHP\Service\Audit;
/**
* No-op API system audit reporter used when the audit module is disabled.
*/
final class NullApiSystemAuditReporter implements ApiSystemAuditReporterInterface
{
public function start(): void
{
}
public function finish(int $statusCode, ?string $errorCode = null): void
{
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.3 Page: 57ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API