From: Christoph Wurst Date: Tue, 30 Jun 2020 07:43:40 +0000 (+0200) Subject: Log usages of the deprecated app.php file X-Git-Tag: v20.0.0beta1~350^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F21632%2Fhead;p=nextcloud-server.git Log usages of the deprecated app.php file Signed-off-by: Christoph Wurst --- diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php index 85fd8c99f05..f4308dae2fd 100644 --- a/lib/private/legacy/OC_App.php +++ b/lib/private/legacy/OC_App.php @@ -150,6 +150,9 @@ class OC_App { self::registerAutoloading($app, $appPath); if (is_file($appPath . '/appinfo/app.php')) { + \OC::$server->getLogger()->debug('/appinfo/app.php is deprecated, use \OCP\AppFramework\Bootstrap\IBootstrap on the application class instead.', [ + 'app' => $app, + ]); \OC::$server->getEventLogger()->start('load_app_' . $app, 'Load app: ' . $app); try { self::requireAppFile($app);