From 72fd7e6748833c13bf299cd638b73b4447878e6f Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 11 Sep 2023 17:53:58 -0300 Subject: [PATCH 1/3] Fix app name Signed-off-by: Vitor Mattos --- tests/php/phpunit.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/phpunit.xml b/tests/php/phpunit.xml index 6e6279d..6b4edd1 100644 --- a/tests/php/phpunit.xml +++ b/tests/php/phpunit.xml @@ -8,7 +8,7 @@ xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > - + . From dafa4980998b370a2f6dac73693f62a459b54df7 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 11 Sep 2023 17:55:06 -0300 Subject: [PATCH 2/3] Add header Signed-off-by: Vitor Mattos --- lib/AppInfo/Application.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 4ab6cce..6a38fb5 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -1,5 +1,29 @@ + * + * @author Vitor Mattos + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ + namespace OCA\MyCompany\AppInfo; use OCA\MyCompany\Middleware\InjectionMiddleware; From ab98d937a7fd9d1353fbfa57676abe750660ae5b Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Mon, 11 Sep 2023 17:55:40 -0300 Subject: [PATCH 3/3] Prevent error on enable app This app have requirements of other apps. Signed-off-by: Vitor Mattos --- lib/Middleware/InjectionMiddleware.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Middleware/InjectionMiddleware.php b/lib/Middleware/InjectionMiddleware.php index 8b289c6..500a788 100644 --- a/lib/Middleware/InjectionMiddleware.php +++ b/lib/Middleware/InjectionMiddleware.php @@ -35,7 +35,6 @@ public function __construct( private IAppManager $appManager, private IConfig $config, private CompanyService $companyService, - private RegistrationService $registrationService, ) { } @@ -177,6 +176,6 @@ private function signRegistrationForm(Controller $controller, string $methodName if ($id !== $registrationFormId) { return; } - $this->registrationService->signForm(); + Server::get(RegistrationService::class)->signForm(); } }