Moving the loadConfig method to the constructor
parent
c1b83f8775
commit
2575072d8e
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue