diff --git a/Admin/Installer.php b/Admin/Installer.php index 895b4ff..dd0d03e 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -17,6 +17,7 @@ namespace Modules\Editor\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 e99ed86..444e390 100644 --- a/Admin/Routes/http.php +++ b/Admin/Routes/http.php @@ -1,12 +1,12 @@ [ [ 'dest' => '\Modules\Editor\Controller:setUpEditorEditor', 'verb' => RouteVerb::GET, - 'result' => ViewType::HTML, - 'layout' => ViewLayout::NULL, ], [ 'dest' => '\Modules\Editor\Controller:viewEditorCreate', diff --git a/Controller.php b/Controller.php index 6e5b65a..cff027a 100644 --- a/Controller.php +++ b/Controller.php @@ -107,7 +107,7 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function viewEditorCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + public function viewEditorCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/Editor/Theme/Backend/editor-create'); @@ -126,7 +126,7 @@ class Controller extends ModuleAbstract implements WebInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function viewEditorList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface + public function viewEditorList(RequestAbstract $request, ResponseAbstract $response, $data = null) : \Serializable { $view = new View($this->app, $request, $response); $view->setTemplate('/Modules/Editor/Theme/Backend/editor-list'); diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 60a137a..6803642 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -13,8 +13,8 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['Navigation'] = [ +return ['Navigation' => [ 'Create' => 'Create', 'Editor' => 'Editor', 'List' => 'List', -]; +]]; diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 4c949ee..4059600 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['Editor'] = [ +return ['Editor' => [ 'Created' => 'Created', 'Creator' => 'Creator', 'Documents' => 'Documents', @@ -26,4 +26,4 @@ $MODLANG['Editor'] = [ 'Preview' => 'Preview', 'Start' => 'Start', 'Text' => 'Text', -]; +]]; diff --git a/Theme/backend/Lang/Navigation.en.lang.php b/Theme/backend/Lang/Navigation.en.lang.php index 60a137a..6803642 100644 --- a/Theme/backend/Lang/Navigation.en.lang.php +++ b/Theme/backend/Lang/Navigation.en.lang.php @@ -13,8 +13,8 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['Navigation'] = [ +return ['Navigation' => [ 'Create' => 'Create', 'Editor' => 'Editor', 'List' => 'List', -]; +]]; diff --git a/Theme/backend/Lang/api.en.lang.php b/Theme/backend/Lang/api.en.lang.php index a2fa112..754d136 100644 --- a/Theme/backend/Lang/api.en.lang.php +++ b/Theme/backend/Lang/api.en.lang.php @@ -13,5 +13,5 @@ * @version 1.0.0 * @link http://orange-management.com */ -$MODLANG['Navigation'] = [ -]; +return ['Navigation' => [ +]];