mapkyca / known-akismet

Akismet comment filtering support for Known
9 stars 0 forks source link

Fix "DEPRECATION WARNING" with "addPageHandler" #7

Closed johanbove closed 4 years ago

johanbove commented 4 years ago

Getting notices in my web server log with Known "debug" log level on:

[Thu Oct 03 19:56:14.050900 2019] [lsapi:notice] [pid 421228:tid 140237306119936] [client 46.229.168.146:20144] [host social.johanbove.info] Backend log: Known (social.johanbove.info): debug - DEPRECATION WARNING: Use \\Idno\\Core\\Idno::site()->routes()->addRoute() [{"file":"/private_html/social/IdnoPlugins/Akismet/Main.php","line":46,"function":"addPageHandler","class":"Idno\\\\Core\\\\Idno","type":"->","args":["admin/akismet","\\\\IdnoPlugins\\\\Akismet\\\\Pages\\\\Admin"]},{"file":"/private_html/social/Idno/Common/Component.php","line":20,"function":"registerPages","class":"IdnoPlugins\\\\Akismet\\\\Main","type":"->","args":[]},{"file":"/private_html/social/Idno/Core/Plugins.php","line":55,"function":"__construct","class":"Idno\\\\Common\\\\Component","type":"->","args":[]}] [/social/IdnoPlugins/Akismet/Main.php:46]\n

Also this:

 21:38:39.820877 2019] [lsapi:notice] [pid 3491436:tid 140237432010496] [client 176.198.198.179:21497] [host social.johanbove.info] Backend log: Known (social.johanbove.info): debug - DEPRECATION WARNING: Use \\Idno\\Core\\Idno::site()->events()->addListener() [{"file":"/social/IdnoPlugins/Akismet/Main.php","line":37,"function":"addEventHook","class":"Idno\\\\Core\\\\Idno","type":"->","args":["annotation/save",{}]},{"file":"/social/Idno/Common/Component.php","line":19,"function":"registerEventHooks","class":"IdnoPlugins\\\\Akismet\\\\Main","type":"->","args":[]},{"file":"/social/Idno/Core/Plugins.php","line":55,"function":"__construct","class":"Idno\\\\Common\\\\Component","type":"->","args":[]}] [/social/IdnoPlugins/Akismet/Main.php

I'll have a go at fixing this if alright with you @mapkyca

mapkyca commented 4 years ago

Be my guest, PRs always welcome!

johanbove commented 4 years ago

Please check #8