src/Builder/AbstractEventBuilder.php
private static function prepareHeaders(HeaderBag $headerBag)
    {
        $headers = $headerBag->all();
        $result = [];

        foreach ($headers as $header => $values) {
            $result[$header] = $values[0];
        }

        return $result;
    }
private static function prepareHeaders(HeaderBag $headerBag)
    {
        $headers = $headerBag->all();
        $result = [];

        foreach ($headers as $header => $values) {
            $result[$header] = $values[0];
        }

        return $result;
    }
private static function prepareHeaders ( HeaderBag $ headerBag ) { $ headers = $ headerBag -> all ( ) ; $ result = [ ] ; foreach ( $ headers as $ header => $ values ) { $ result [ $ header ] = $ values [ 0 ] ; } return $ result ; }
Get array of headers from header bag

@param HeaderBag $headerBag
@return array
Get array of headers from header bag