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; 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(); } } 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" > - + .