Merge pull request #21632 from nextcloud/techdebt/app-php-deprecation-log

Log usages of the deprecated app.php file
This commit is contained in:
Roeland Jago Douma 2020-06-30 19:38:55 +02:00 committed by GitHub
commit 0e42d05457
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);