From 1f09ef0d5864c7a444b5d0516370f5a2790c8147 Mon Sep 17 00:00:00 2001 From: Andrii Riabchenko Date: Fri, 25 Apr 2025 15:01:29 +0300 Subject: [PATCH] Refactor logging initialization in bootstrap.php for clarity --- core/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/bootstrap.php b/core/bootstrap.php index e7d1ef3..f7e85f7 100644 --- a/core/bootstrap.php +++ b/core/bootstrap.php @@ -6,7 +6,7 @@ $registry = new Registry(); -$registry->set('phplog', new Log('phpapp', 'php.log')); +$log = new Log('phpapp', 'php.log'); set_error_handler(function ($errno, $errstr, $errfile, $errline) use ($log) { $log->error("PHP Error: [$errno] $errstr in $errfile on line $errline");