nextcloud/apps/encryption/appinfo/app.php

22 lines
630 B
PHP
Raw Normal View History

2015-02-24 13:05:19 -05:00
<?php
2015-02-24 13:05:19 -05:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
2015-02-24 13:05:19 -05:00
*/
2015-03-30 05:49:03 -04:00
namespace OCA\Encryption\AppInfo;
2015-02-24 13:05:19 -05:00
\OCP\Util::addscript('encryption', 'encryption');
$encryptionManager = \OC::$server->getEncryptionManager();
$encryptionSystemReady = $encryptionManager->isReady();
2015-05-27 05:10:06 -04:00
/** @var Application $app */
$app = \OC::$server->query(Application::class);
2015-05-27 05:10:06 -04:00
if ($encryptionSystemReady) {
$app->registerEncryptionModule($encryptionManager);
$app->registerHooks(\OC::$server->getConfig());
$app->setUp($encryptionManager);
}