From b660719ade98aa3a2ccda255f48678122c06654b Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 9 Oct 2016 20:27:51 +0200 Subject: [PATCH] Fixing function usage --- components/modules.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/modules.md b/components/modules.md index 756b22f..69087eb 100644 --- a/components/modules.md +++ b/components/modules.md @@ -66,9 +66,9 @@ use phpOMS\Module\InstallerAbstract; class Installer extends InstallerAbstract { - public static function install(Pool $dbPool, InfoManager $info) + public static function install(string $path, Pool $dbPool, InfoManager $info) { - parent::install($dbPool, $info); + parent::install($path, $dbPool, $info); switch ($dbPool->get('core')->getType()) { case DatabaseType::MYSQL: @@ -91,7 +91,7 @@ public static function installExternal(Pool $dbPool, array $data) Other modules have to create a Navigation.php file inside the install directory with the following method: ``` -public static function install(Pool $dbPool) +public static function install(string $path, Pool $dbPool) { $navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);