Implementing basic activate/deactivate

This commit is contained in:
Dennis Eichhorn 2016-07-02 12:39:31 +02:00
parent 01a1cadf5b
commit 4f9d7abdbc
4 changed files with 10 additions and 16 deletions

View File

@ -18,6 +18,7 @@ namespace Modules\Dashboard\Admin;
use phpOMS\DataStorage\Database\Pool;
use phpOMS\Module\ActivateAbstract;
use phpOMS\Module\InfoManager;
/**
* Navigation class.
@ -36,7 +37,7 @@ class Activate extends ActivateAbstract
/**
* {@inheritdoc}
*/
public static function activate(Pool $dbPool, array $info)
public static function activate(Pool $dbPool, InfoManager $info)
{
parent::activate($dbPool, $info);
}

View File

@ -18,6 +18,7 @@ namespace Modules\Dashboard\Admin;
use phpOMS\DataStorage\Database\Pool;
use phpOMS\Module\DeactivateAbstract;
use phpOMS\Module\InfoManager;
/**
* Navigation class.
@ -36,7 +37,7 @@ class Deactivate extends DeactivateAbstract
/**
* {@inheritdoc}
*/
public static function deactivate(Pool $dbPool, array $info)
public static function deactivate(Pool $dbPool, InfoManager $info)
{
parent::deactivate($dbPool, $info);
}

View File

@ -17,6 +17,7 @@ namespace Modules\Dashboard\Admin;
use phpOMS\DataStorage\Database\Pool;
use phpOMS\Module\InfoManager;
use phpOMS\Module\InstallerAbstract;
/**
* Dashboard install class.
@ -29,7 +30,7 @@ use phpOMS\Module\InfoManager;
* @link http://orange-management.com
* @since 1.0.0
*/
class Installer
class Installer extends InstallerAbstract
{
/**
@ -37,5 +38,6 @@ class Installer
*/
public static function install(Pool $dbPool, InfoManager $info)
{
parent::install($dbPool, $info);
}
}

View File

@ -24,12 +24,11 @@
"load": [
{
"pid": [
"3788e96aebafcdf3acc1a87861d559695e9a531f",
"40a630e157504605e40ba241f6b1f78ab1dd97b9"
"3788e96aebafcdf3acc1a87861d559695e9a531f"
],
"type": 4,
"for": 0,
"from": "Controlling",
"for": "Content",
"from": "Dashboard",
"file": "Dashboard"
},
{
@ -40,15 +39,6 @@
"from": "Dashboard",
"for": "Navigation",
"file": "Navigation"
},
{
"pid": [
"40a630e157504605e40ba241f6b1f78ab1dd97b9"
],
"type": 5,
"from": "Dashboard",
"for": "Navigation",
"file": "nav.reporter"
}
]
}