aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2020-06-30 19:38:55 +0200
committerGitHub <noreply@github.com>2020-06-30 19:38:55 +0200
commit0e42d05457b7d8f5af29c3cbd6eb259e36d38693 (patch)
tree790e4eca9dfb7602e1879af6267e76c8044978f6
parentaca0046aec4138ef431622a9c8c3d8ebf666a8e0 (diff)
parent8e9726be5c39e5df7956e8539f201e4213ab6aba (diff)
downloadnextcloud-server-0e42d05457b7d8f5af29c3cbd6eb259e36d38693.tar.gz
nextcloud-server-0e42d05457b7d8f5af29c3cbd6eb259e36d38693.zip
Merge pull request #21632 from nextcloud/techdebt/app-php-deprecation-log
Log usages of the deprecated app.php file
-rw-r--r--lib/private/legacy/OC_App.php3
1 files changed, 3 insertions, 0 deletions
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);