public static function dumpHandlers() {
        $result = [];

        foreach (self::$handlers as $event_name => $nested) {
            $handlers = call_user_func_array('array_merge', static::getHandlers($event_name));
            $result[$event_name] = array_map('format_callback', $handlers);
        }

        return $result;
    }
public static function dumpHandlers() {
        $result = [];

        foreach (self::$handlers as $event_name => $nested) {
            $handlers = call_user_func_array('array_merge', static::getHandlers($event_name));
            $result[$event_name] = array_map('format_callback', $handlers);
        }

        return $result;
    }
public static function dumpHandlers ( ) { $ result = [ ] ; foreach ( self :: $ handlers as $ event_name => $ nested ) { $ handlers = call_user_func_array ( 'array_merge' , static :: getHandlers ( $ event_name ) ) ; $ result [ $ event_name ] = array_map ( 'format_callback' , $ handlers ) ; } return $ result ; }
Dumps all of the bound handlers.

This method is meant for debugging.

@return array Returns an array of all handlers indexed by event name.
Dumps all of the bound handlers .