]> source.dussan.org Git - nextcloud-server.git/commitdiff
Log usages of the deprecated app.php file 21632/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 30 Jun 2020 07:43:40 +0000 (09:43 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 30 Jun 2020 07:43:40 +0000 (09:43 +0200)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/private/legacy/OC_App.php

index 85fd8c99f05342312f87e183c75e8964b22e251a..f4308dae2fd6fbe39d2c6691ee2c350162f47c13 100644 (file)
@@ -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);