mirror of
https://hk.gh-proxy.com/https://github.com/wp-cli/profile-command.git
synced 2025-08-21 06:39:02 +08:00
Include callback definition source when profiling hooks
This commit is contained in:
parent
b8f642aa4e
commit
99914b71b2
4 changed files with 67 additions and 15 deletions
|
@ -25,8 +25,10 @@ class Logger {
|
|||
|
||||
public static $active_loggers = array();
|
||||
|
||||
public function __construct( $type, $name ) {
|
||||
$this->$type = $name;
|
||||
public function __construct( $definition = array() ) {
|
||||
foreach( $definition as $k => $v ) {
|
||||
$this->$k = $v;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue