From ad83d1dafac62bb28fda004f86129319a5c3e2ca Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 6 Mar 2022 01:07:59 +0100 Subject: Refactor fixes --- src/App.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/App.php') diff --git a/src/App.php b/src/App.php index 15be58b..5fc62fa 100644 --- a/src/App.php +++ b/src/App.php @@ -20,6 +20,11 @@ class App */ public function __construct() { + /**@var HookManager $hooks*/ + global $hooks; + + $hooks->doAction('init'); + $request = Request::createFromGlobals(); $response = new Response(); @@ -64,7 +69,7 @@ class App $entriesController = new EntriesController(); - $content = $entriesController->getEntries(); + $content = $entriesController->getEntries($formPath); } else { -- cgit v1.2.3