Moving the loadConfig method to the constructor

main
Nicolas Ong 2023-09-08 08:19:05 +02:00
parent c1b83f8775
commit 2575072d8e
1 changed files with 5 additions and 1 deletions

View File

@ -5,9 +5,13 @@ final class Blog
private array $links = []; private array $links = [];
public function run() public function __construct()
{ {
$this->loadConfig(); $this->loadConfig();
}
public function run()
{
$this->render(); $this->render();
} }