From 2575072d8ef166638c759b9c278d5a7d782bf346 Mon Sep 17 00:00:00 2001 From: kholo Date: Fri, 8 Sep 2023 08:19:05 +0200 Subject: [PATCH] Moving the loadConfig method to the constructor --- lib/Blog.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Blog.php b/lib/Blog.php index f4a2df8..d189495 100644 --- a/lib/Blog.php +++ b/lib/Blog.php @@ -5,9 +5,13 @@ final class Blog private array $links = []; - public function run() + public function __construct() { $this->loadConfig(); + } + + public function run() + { $this->render(); }