[various] Remove App dependency from hook functions

This commit is contained in:
Hypolite Petovan 2023-01-13 21:16:09 -05:00
parent b53914ee11
commit 39c654da00
87 changed files with 419 additions and 451 deletions

View file

@ -14,7 +14,7 @@ use Psr\Log\LogLevel;
require_once __DIR__ . '/vendor/autoload.php';
function monolog_install(App $a)
function monolog_install()
{
Hook::register('logger_instance' , __FILE__, 'monolog_instance');
}
@ -24,7 +24,7 @@ function monolog_uninstall()
Hook::unregister('logger_instance', __FILE__, 'monolog_instance');
}
function monolog_instance(App $a, array &$data)
function monolog_instance(array &$data)
{
if ($data['name'] !== 'monolog') {
return;