2015-02-24 13:05:19 -05:00
|
|
|
<?php
|
|
|
|
|
/**
|
2016-07-21 10:49:16 -04:00
|
|
|
* @copyright Copyright (c) 2016, ownCloud, Inc.
|
|
|
|
|
*
|
2017-11-06 09:56:42 -05:00
|
|
|
* @author Bjoern Schiessle <bjoern@schiessle.org>
|
2016-05-26 13:56:05 -04:00
|
|
|
* @author Björn Schießle <bjoern@schiessle.org>
|
2019-12-03 13:57:53 -05:00
|
|
|
* @author Christoph Wurst <christoph@winzerhof-wurst.at>
|
2015-04-07 11:02:49 -04:00
|
|
|
* @author Clark Tomlinson <fallen013@gmail.com>
|
|
|
|
|
*
|
2015-02-24 13:05:19 -05:00
|
|
|
* @license AGPL-3.0
|
|
|
|
|
*
|
|
|
|
|
* This code is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Affero General Public License, version 3,
|
|
|
|
|
* as published by the Free Software Foundation.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Affero General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU Affero General Public License, version 3,
|
2019-12-03 13:57:53 -05:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>
|
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');
|
|
|
|
|
|
2015-05-27 05:10:06 -04:00
|
|
|
$encryptionSystemReady = \OC::$server->getEncryptionManager()->isReady();
|
|
|
|
|
|
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) {
|
2015-04-07 12:05:54 -04:00
|
|
|
$app->registerEncryptionModule();
|
|
|
|
|
$app->registerHooks();
|
2017-05-30 06:54:58 -04:00
|
|
|
$app->setUp();
|
2015-04-07 12:05:54 -04:00
|
|
|
}
|