add app to installer

This commit is contained in:
Dennis Eichhorn 2021-06-24 00:03:34 +02:00
parent 9ba402db04
commit dd081073ab
3 changed files with 9 additions and 9 deletions

View File

@ -14,7 +14,7 @@ declare(strict_types=1);
namespace Modules\HumanResourceManagement\Admin\Install; namespace Modules\HumanResourceManagement\Admin\Install;
use phpOMS\DataStorage\Database\DatabasePool; use phpOMS\Application\ApplicationAbstract;
/** /**
* Media class. * Media class.
@ -30,14 +30,14 @@ class Media
* Install media providing * Install media 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\Media\Admin\Installer::installExternal($dbPool, ['path' => __DIR__ . '/Media.install.json']); \Modules\Media\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Media.install.json']);
} }
} }

View File

@ -98,7 +98,7 @@
"pid": "/", "pid": "/",
"type": 2, "type": 2,
"subtype": 1, "subtype": 1,
"name": "Departments", "name": "Positions",
"uri": "{/prefix}humanresource/position/list", "uri": "{/prefix}humanresource/position/list",
"target": "self", "target": "self",
"icon": null, "icon": null,

View File

@ -14,7 +14,7 @@ declare(strict_types=1);
namespace Modules\HumanResourceManagement\Admin\Install; namespace Modules\HumanResourceManagement\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']);
} }
} }