grosjo/nextcloud-grauphel

app.php is deprecated (NextCloud 20)

Closed this issue · 2 comments

nextcloud.log contains many of these in NC20:

{
    "reqId": "okHSVoCQzK5PYTlHotYZ",
    "level": 0,
    "time": "2021-01-22T05:54:41+00:00",
    "remoteAddr": "::1",
    "user": "admin",
    "app": "files_sharing",
    "method": "GET",
    "url": "/ocs/v2.php/search/providers?from=%2Fapps%2Fgrauphel%2F",
    "message": "/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.",
    "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:84.0) Gecko/20100101 Firefox/84.0",
    "version": "20.0.5.2"
}

Using IBootstrap will break grauphel on older versions:

Nextcloud 20 is the first release with the interface \OCP\AppFramework\Bootstrap\IBootstrap

https://docs.nextcloud.com/server/stable/developer_manual/app_development/bootstrap.html

Seems fixed for now