diff --git a/framework/yii/base/Event.php b/framework/yii/base/Event.php index a678c89..974a1a4 100644 --- a/framework/yii/base/Event.php +++ b/framework/yii/base/Event.php @@ -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, '\\');