mirror of
https://github.com/Karaka-Management/Developer-Guide.git
synced 2026-01-22 17:28:40 +00:00
Fixing function usage
This commit is contained in:
parent
c5c334e542
commit
b660719ade
|
|
@ -66,9 +66,9 @@ use phpOMS\Module\InstallerAbstract;
|
||||||
|
|
||||||
class Installer extends 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()) {
|
switch ($dbPool->get('core')->getType()) {
|
||||||
case DatabaseType::MYSQL:
|
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:
|
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);
|
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user