Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
AEnvironmentPageAwareController
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4/**
5 * SPDX-FileCopyrightText: 2020-2024 LibreCode coop and contributors
6 * SPDX-License-Identifier: AGPL-3.0-or-later
7 */
8
9namespace OCA\Libresign\Controller;
10
11use OCA\Libresign\AppInfo\Application;
12use OCA\Libresign\Service\SignFileService;
13use OCP\AppFramework\Controller;
14use OCP\IL10N;
15use OCP\IRequest;
16use OCP\IUserSession;
17
18abstract class AEnvironmentPageAwareController extends Controller implements ISignatureUuid {
19    use LibresignTrait;
20
21    public function __construct(
22        IRequest $request,
23        protected SignFileService $signFileService,
24        protected IL10N $l10n,
25        protected IUserSession $userSession,
26    ) {
27        parent::__construct(Application::APP_ID, $request);
28    }
29}