diff --git a/lib/Controller/AEnvironmentAwareController.php b/lib/Controller/AEnvironmentAwareOCSController.php similarity index 86% rename from lib/Controller/AEnvironmentAwareController.php rename to lib/Controller/AEnvironmentAwareOCSController.php index 5ff7918..62336cd 100644 --- a/lib/Controller/AEnvironmentAwareController.php +++ b/lib/Controller/AEnvironmentAwareOCSController.php @@ -10,7 +10,7 @@ use OCP\AppFramework\OCSController; -abstract class AEnvironmentAwareController extends OCSController { +abstract class AEnvironmentAwareOCSController extends OCSController { protected int $apiVersion = 1; public function setAPIVersion(int $apiVersion): void { diff --git a/lib/Controller/AdminGroupController.php b/lib/Controller/AdminGroupController.php index 700319e..fe3a05b 100644 --- a/lib/Controller/AdminGroupController.php +++ b/lib/Controller/AdminGroupController.php @@ -32,7 +32,7 @@ use OCP\Security\ISecureRandom; use Psr\Log\LoggerInterface; -class AdminGroupController extends AEnvironmentAwareController { +class AdminGroupController extends AEnvironmentAwareOCSController { public function __construct( $appName, IRequest $request, diff --git a/lib/Middleware/InjectionMiddleware.php b/lib/Middleware/InjectionMiddleware.php index b67e377..461b13b 100644 --- a/lib/Middleware/InjectionMiddleware.php +++ b/lib/Middleware/InjectionMiddleware.php @@ -8,7 +8,7 @@ namespace OCA\AdminGroupManager\Middleware; -use OCA\AdminGroupManager\Controller\AEnvironmentAwareController; +use OCA\AdminGroupManager\Controller\AEnvironmentAwareOCSController; use OCA\AdminGroupManager\Controller\Attribute\RestrictIp; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; @@ -34,9 +34,9 @@ public function __construct( * @throws \Exception */ public function beforeController(Controller $controller, string $methodName) { - if ($controller instanceof AEnvironmentAwareController) { + if ($controller instanceof AEnvironmentAwareOCSController) { $apiVersion = $this->request->getParam('apiVersion'); - /** @var AEnvironmentAwareController $controller */ + /** @var AEnvironmentAwareOCSController $controller */ $controller->setAPIVersion((int)substr($apiVersion, 1)); }