diff --git a/Admin/Installer.php b/Admin/Installer.php index ac0e4a8..a099ae2 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -17,6 +17,7 @@ namespace Modules\HumanResourceManagement\Admin; use phpOMS\DataStorage\Database\DatabaseType; use phpOMS\DataStorage\Database\Pool; +use phpOMS\Module\InfoManager; use phpOMS\Module\InstallerAbstract; /** diff --git a/Admin/Routes/http.php b/Admin/Routes/http.php index ea049fa..8cdfbbf 100644 --- a/Admin/Routes/http.php +++ b/Admin/Routes/http.php @@ -1,5 +1,7 @@ [ [ diff --git a/Controller.php b/Controller.php index b36a37e..a9f8bda 100644 --- a/Controller.php +++ b/Controller.php @@ -88,7 +88,7 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function viewHrList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + public function viewHrList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/staff-list'); @@ -110,7 +110,7 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function viewHrCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + public function viewHrCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/staff-create'); @@ -129,7 +129,7 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function viewHrDepartmentList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + public function viewHrDepartmentList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/HumanResourceManagement/Theme/Backend/department-list'); diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 6c5918f..b1c7642 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['HumanResourceManagement'] = [ +return ['HumanResourceManagement' => [ 'Department' => 'Department', 'Departments' => 'Departments', 'Employees' => 'Employees', @@ -24,4 +24,4 @@ $MODLANG['HumanResourceManagement'] = [ 'Staff' => 'Staff', 'Status' => 'Status', 'Vacation' => 'Vacation', -]; +]]; diff --git a/Theme/backend/Lang/Navigation.en.lang.php b/Theme/backend/Lang/Navigation.en.lang.php index 572764c..e5eb586 100644 --- a/Theme/backend/Lang/Navigation.en.lang.php +++ b/Theme/backend/Lang/Navigation.en.lang.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['Navigation'] = [ +return ['Navigation' => [ 'Departments' => 'Departments', 'Employees' => 'Employees', 'HumanResources' => 'Human Resources', @@ -24,4 +24,4 @@ $MODLANG['Navigation'] = [ 'Shifts' => 'Shifts', 'Staff' => 'Staff', 'Structure' => 'Structure', -]; +]]; diff --git a/Theme/backend/Lang/en.lang.php b/Theme/backend/Lang/en.lang.php index 6c5918f..b1c7642 100644 --- a/Theme/backend/Lang/en.lang.php +++ b/Theme/backend/Lang/en.lang.php @@ -13,7 +13,7 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['HumanResourceManagement'] = [ +return ['HumanResourceManagement' => [ 'Department' => 'Department', 'Departments' => 'Departments', 'Employees' => 'Employees', @@ -24,4 +24,4 @@ $MODLANG['HumanResourceManagement'] = [ 'Staff' => 'Staff', 'Status' => 'Status', 'Vacation' => 'Vacation', -]; +]];