Log usages of the deprecated app.php file

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2020-06-30 09:43:40 +02:00
parent c0c841bc93
commit 8e9726be5c
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
1 changed files with 3 additions and 0 deletions

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