[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
wp-optimize
/
vendor
/
mrclay
/
minify
/
lib
/
Minify
/
Logger
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 LegacyHandler.php
525 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: LegacyHandler.php
<?php namespace Minify\Logger; use Monolog\Handler\AbstractProcessingHandler; class LegacyHandler extends AbstractProcessingHandler { private $obj; public function __construct($obj) { if (!is_callable(array($obj, 'log'))) { throw new \InvalidArgumentException('$obj must have a public log() method'); } $this->obj = $obj; parent::__construct(); } protected function write(array $record) { $this->obj->log((string)$record['formatted']); } }