diff --git a/Admin/Installer.php b/Admin/Installer.php index b4f04c8..5f72582 100755 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -31,6 +31,14 @@ use phpOMS\Config\SettingsInterface; */ final class Installer extends InstallerAbstract { + /** + * Path of the file + * + * @var string + * @since 1.0.0 + */ + public const PATH = __DIR__; + /** * {@inheritdoc} */ diff --git a/Admin/Status.php b/Admin/Status.php index 967d27f..4404632 100755 --- a/Admin/Status.php +++ b/Admin/Status.php @@ -26,4 +26,11 @@ use phpOMS\Module\StatusAbstract; */ final class Status extends StatusAbstract { + /** + * Path of the file + * + * @var string + * @since 1.0.0 + */ + public const PATH = __DIR__; } diff --git a/Admin/Uninstaller.php b/Admin/Uninstaller.php index 319746b..757b107 100755 --- a/Admin/Uninstaller.php +++ b/Admin/Uninstaller.php @@ -24,6 +24,13 @@ use phpOMS\Module\UninstallerAbstract; * @link https://orange-management.org * @since 1.0.0 */ -final class Uninstaller extends UninstallerAbstract +final class Installer extends InstallerAbstract { + /** + * Path of the file + * + * @var string + * @since 1.0.0 + */ + public const PATH = __DIR__; } diff --git a/Controller/ApiController.php b/Controller/ApiController.php index 2f888af..69aa9c5 100755 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -380,7 +380,7 @@ final class ApiController extends Controller */ public function createSupportAppFromRequest(RequestAbstract $request) : SupportApp { - $app = new SupportApp(); + $app = new SupportApp(); $app->name = $request->getData('name') ?? ''; return $app; diff --git a/Controller/BackendController.php b/Controller/BackendController.php index 750d238..b79db26 100755 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -51,6 +51,9 @@ final class BackendController extends Controller */ public function viewSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface { + $view = new View($this->app->l11nManager, $request, $response); + + return $view; } /**