Commit fec58f4e by Qiang Xue

Fixes #1472: set event sender if possible.

parent 22c45342
......@@ -161,6 +161,9 @@ class Event extends Object
$event->name = $name;
if (is_object($class)) {
if ($event->sender === null) {
$event->sender = $class;
}
$class = get_class($class);
} else {
$class = ltrim($class, '\\');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment