mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-02-16 00:08:41 +00:00
always use and many other todo implementations
This commit is contained in:
parent
5285cfc53a
commit
e56bd8dbf6
|
|
@ -29,14 +29,14 @@ class Navigation
|
||||||
/**
|
/**
|
||||||
* Install navigation providing
|
* Install navigation providing
|
||||||
*
|
*
|
||||||
* @param string $path Module path
|
|
||||||
* @param ApplicationAbstract $app Application
|
* @param ApplicationAbstract $app Application
|
||||||
|
* @param string $path Module path
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public static function install(string $path, ApplicationAbstract $app) : void
|
public static function install(ApplicationAbstract $app, string $path) : void
|
||||||
{
|
{
|
||||||
\Modules\Navigation\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Navigation.install.json']);
|
\Modules\Navigation\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Navigation.install.json']);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,15 +48,15 @@ final class Installer extends InstallerAbstract
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public static function install(DatabasePool $dbPool, ModuleInfo $info, SettingsInterface $cfgHandler) : void
|
public static function install(ApplicationAbstract $app, ModuleInfo $info, SettingsInterface $cfgHandler) : void
|
||||||
{
|
{
|
||||||
parent::install($dbPool, $info, $cfgHandler);
|
parent::install($app, $info, $cfgHandler);
|
||||||
|
|
||||||
// Install bill type templates
|
// Install bill type templates
|
||||||
$app = new class() extends ApplicationAbstract {};
|
$newApp = new class() extends ApplicationAbstract {};
|
||||||
$app->dbPool = $dbPool;
|
$newApp->dbPool = $app->dbPool;
|
||||||
|
|
||||||
$media = \Modules\Media\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Install/Media2.install.json']);
|
$media = \Modules\Media\Admin\Installer::installExternal($newApp, ['path' => __DIR__ . '/Install/Media2.install.json']);
|
||||||
|
|
||||||
/** @var int $defaultTemplate */
|
/** @var int $defaultTemplate */
|
||||||
$defaultTemplate = (int) \reset($media['upload'][0])->getId();
|
$defaultTemplate = (int) \reset($media['upload'][0])->getId();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user