Create hr virtual media directories

This commit is contained in:
Dennis Eichhorn 2019-10-05 22:04:20 +02:00
parent a81bb1ce4c
commit 61e6472eaf
2 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[
{
"name": "HumanResourceManagement",
"virtualPath": "/HumanResourceManagement",
"user": 1
}
]

43
Admin/Install/Media.php Normal file
View File

@ -0,0 +1,43 @@
<?php
/**
* Orange Management
*
* PHP Version 7.4
*
* @package Modules\Helper\HumanResourceManagement\Install
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
namespace Modules\Helper\HumanResourceManagement\Install;
use phpOMS\DataStorage\Database\DatabasePool;
/**
* Media class.
*
* @package Modules\Helper\HumanResourceManagement\Install
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class Media
{
/**
* Install media providing
*
* @param string $path Module path
* @param DatabasePool $dbPool Database pool for database interaction
*
* @return void
*
* @since 1.0.0
*/
public static function install(string $path, DatabasePool $dbPool) : void
{
\Modules\Media\HumanResourceManagement\Installer::installExternal($dbPool, ['path' => __DIR__ . '/Media.install.json']);
}
}