2015-02-24 13:05:19 -05:00
|
|
|
<?php
|
2024-05-28 10:42:42 -04:00
|
|
|
|
2015-02-24 13:05:19 -05:00
|
|
|
/**
|
2024-05-28 10:42:42 -04: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
|
|
|
|
2015-04-16 07:47:27 -04:00
|
|
|
\OCP\Util::addscript('encryption', 'encryption');
|
|
|
|
|
|
2020-11-22 16:09:09 -05:00
|
|
|
$encryptionManager = \OC::$server->getEncryptionManager();
|
|
|
|
|
$encryptionSystemReady = $encryptionManager->isReady();
|
2015-05-27 05:10:06 -04:00
|
|
|
|
2019-10-11 02:33:09 -04:00
|
|
|
/** @var Application $app */
|
|
|
|
|
$app = \OC::$server->query(Application::class);
|
2015-05-27 05:10:06 -04:00
|
|
|
if ($encryptionSystemReady) {
|
2020-11-22 16:09:09 -05:00
|
|
|
$app->registerEncryptionModule($encryptionManager);
|
|
|
|
|
$app->registerHooks(\OC::$server->getConfig());
|
|
|
|
|
$app->setUp($encryptionManager);
|
2015-04-07 12:05:54 -04:00
|
|
|
}
|