123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
- namespace OCA\Settings\Controller;
- use OCP\AppFramework\Controller;
- use OCP\AppFramework\Http\Attribute\NoAdminRequired;
- use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
- use OCP\AppFramework\Http\Attribute\OpenAPI;
- use OCP\AppFramework\Http\TemplateResponse;
- use OCP\AppFramework\Services\IInitialState;
- use OCP\Group\ISubAdmin;
- use OCP\IGroupManager;
- use OCP\INavigationManager;
- use OCP\IRequest;
- use OCP\IUserSession;
- use OCP\Settings\IDeclarativeManager;
- use OCP\Settings\IManager as ISettingsManager;
- class AdminSettingsController extends Controller {
- use CommonSettingsTrait;
- public function __construct(
- $appName,
- IRequest $request,
- INavigationManager $navigationManager,
- ISettingsManager $settingsManager,
- IUserSession $userSession,
- IGroupManager $groupManager,
- ISubAdmin $subAdmin,
- IDeclarativeManager $declarativeSettingsManager,
- IInitialState $initialState,
- ) {
- parent::__construct($appName, $request);
- $this->navigationManager = $navigationManager;
- $this->settingsManager = $settingsManager;
- $this->userSession = $userSession;
- $this->groupManager = $groupManager;
- $this->subAdmin = $subAdmin;
- $this->declarativeSettingsManager = $declarativeSettingsManager;
- $this->initialState = $initialState;
- }
-
-
-
- public function index(string $section): TemplateResponse {
- return $this->getIndexResponse(
- 'admin',
- $section,
- );
- }
- }
|