public static function on($class, $name, callable $handler)
    {
        $class = ObjectHelper::getClass($class);
        if (!isset(static::$events[$class][$name])) {
            static::$events[$class][$name] = [];
        }
        static::$events[$class][$name][] = $handler;
    }