always use and many other todo implementations

This commit is contained in:
Dennis Eichhorn 2022-03-17 22:39:52 +01:00
parent 292184028c
commit 47b10ae296
5 changed files with 56 additions and 4 deletions

View File

@ -0,0 +1,8 @@
[
{
"type": "component",
"board": 1,
"order": 1,
"module": "Tasks"
}
]

View File

@ -0,0 +1,43 @@
<?php
/**
* Karaka
*
* PHP Version 8.0
*
* @package Modules\Tasks\Admin\Install
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://karaka.app
*/
declare(strict_types=1);
namespace Modules\Tasks\Admin\Install;
use phpOMS\Application\ApplicationAbstract;
/**
* Dashboard class.
*
* @package Modules\Tasks\Admin\Install
* @license OMS License 1.0
* @link https://karaka.app
* @since 1.0.0
*/
class Dashboard
{
/**
* Install dashboard providing
*
* @param string $path Module path
* @param ApplicationAbstract $app Application
*
* @return void
*
* @since 1.0.0
*/
public static function install(string $path, ApplicationAbstract $app) : void
{
\Modules\Dashboard\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/Dashboard.install.json']);
}
}

View File

@ -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']);
} }

View File

@ -29,14 +29,14 @@ final class Search
/** /**
* 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\Search\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/SearchCommands.php']); \Modules\Search\Admin\Installer::installExternal($app, ['path' => __DIR__ . '/SearchCommands.php']);
} }

View File

@ -26,6 +26,7 @@
"providing": { "providing": {
"Navigation": "*", "Navigation": "*",
"Search": "*", "Search": "*",
"Dashboard": "*",
"Media": "*" "Media": "*"
}, },
"load": [ "load": [