Include callback definition source when profiling hooks

This commit is contained in:
Daniel Bachhuber 2016-10-07 14:20:08 -07:00
parent b8f642aa4e
commit 99914b71b2
4 changed files with 67 additions and 15 deletions

View file

@ -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;
}
}
/**