docs: add inline documentation where missing

This commit is contained in:
Björn Fromme
2026-03-16 12:01:09 +01:00
parent 2fe9185a6f
commit ea1ce4a029
18 changed files with 150 additions and 0 deletions
+8
View File
@@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace App\Logger;
use App\Entity\LogEntry;
@@ -7,6 +9,12 @@ use Doctrine\ORM\EntityManagerInterface;
use Monolog\Handler\AbstractProcessingHandler;
use Monolog\LogRecord;
/**
* Monolog handler that persists log entries to the database.
*
* Writes log records to the LogEntry entity, replacing message placeholders
* with context values. Includes channel, context, and extra data for auditing.
*/
class DatabaseHandler extends AbstractProcessingHandler
{
public function __construct(private readonly EntityManagerInterface $entityManager)