feat: implement exception handling system with error context and policies

This commit is contained in:
2025-11-01 15:46:43 +01:00
parent f3440dff0d
commit a441da37f6
35 changed files with 920 additions and 88 deletions

View File

@@ -0,0 +1,12 @@
<?php
declare(strict_types=1);
namespace App\Framework\ExceptionHandling\Reporter;
final class LogReporter implements Reporter
{
public function report(string $message): void
{
echo ("[log] " . $message);
}
}

View File

@@ -0,0 +1,8 @@
<?php
namespace App\Framework\ExceptionHandling\Reporter;
interface Reporter
{
public function report(string $message): void;
}