public static function fireArray($event, $args = []) {
        $handlers = self::getHandlers($event);
        if (!$handlers) {
            return null;
        }

        // Grab the handlers and call them.
        $result = null;
        foreach ($handlers as $callbacks) {
            foreach ($callbacks as $callback) {
                $result = call_user_func_array($callback, $args);
            }
        }
        return $result;
    }
public static function fireArray($event, $args = []) {
        $handlers = self::getHandlers($event);
        if (!$handlers) {
            return null;
        }

        // Grab the handlers and call them.
        $result = null;
        foreach ($handlers as $callbacks) {
            foreach ($callbacks as $callback) {
                $result = call_user_func_array($callback, $args);
            }
        }
        return $result;
    }
public static function fireArray ( $ event , $ args = [ ] ) { $ handlers = self :: getHandlers ( $ event ) ; if ( ! $ handlers ) { return null ; } // Grab the handlers and call them. $ result = null ; foreach ( $ handlers as $ callbacks ) { foreach ( $ callbacks as $ callback ) { $ result = call_user_func_array ( $ callback , $ args ) ; } } return $ result ; }
Fire an event with an array of arguments.

This method is to {@link Event::fire()} as {@link call_user_func_array()} is to {@link call_user_funct()}.
The main purpose though is to allow you to have event handlers that can take references.

@param string $event The name of the event.
@param array $args The arguments for the event handlers.
@return mixed Returns the result of the last event handler.
Fire an event with an array of arguments .