Moving the loadConfig method to the constructor
parent
c1b83f8775
commit
2575072d8e
|
@ -5,9 +5,13 @@ final class Blog
|
|||
|
||||
private array $links = [];
|
||||
|
||||
public function run()
|
||||
public function __construct()
|
||||
{
|
||||
$this->loadConfig();
|
||||
}
|
||||
|
||||
public function run()
|
||||
{
|
||||
$this->render();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue