mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-02-13 16:58:42 +00:00
add app to installer
This commit is contained in:
parent
86437be733
commit
9f1e6b5d47
|
|
@ -14,7 +14,7 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Modules\Knowledgebase\Admin\Install;
|
namespace Modules\Knowledgebase\Admin\Install;
|
||||||
|
|
||||||
use phpOMS\DataStorage\Database\DatabasePool;
|
use phpOMS\Application\ApplicationAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Navigation class.
|
* Navigation class.
|
||||||
|
|
@ -30,14 +30,14 @@ class Navigation
|
||||||
* Install navigation providing
|
* Install navigation providing
|
||||||
*
|
*
|
||||||
* @param string $path Module path
|
* @param string $path Module path
|
||||||
* @param DatabasePool $dbPool Database pool for database interaction
|
* @param ApplicationAbstract $app Application
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function install(string $path, DatabasePool $dbPool) : void
|
public static function install(string $path, ApplicationAbstract $app) : void
|
||||||
{
|
{
|
||||||
\Modules\Navigation\Admin\Installer::installExternal($dbPool, ['path' => __DIR__ . '/Navigation.install.json']);
|
\Modules\Navigation\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Navigation.install.json']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ final class Installer extends InstallerAbstract
|
||||||
|
|
||||||
$category = new WikiCategory();
|
$category = new WikiCategory();
|
||||||
$category->app = new NullWikiApp($id);
|
$category->app = new NullWikiApp($id);
|
||||||
$category->setName('Default');
|
$category->setL11n('Default');
|
||||||
|
|
||||||
WikiCategoryMapper::create($category);
|
WikiCategoryMapper::create($category);
|
||||||
|
|
||||||
|
|
@ -63,7 +63,7 @@ final class Installer extends InstallerAbstract
|
||||||
|
|
||||||
$category = new WikiCategory();
|
$category = new WikiCategory();
|
||||||
$category->app = new NullWikiApp($id);
|
$category->app = new NullWikiApp($id);
|
||||||
$category->setName('Default');
|
$category->setL11n('Default');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user