CodeExplorer renderMessage example
$this->headerRules
[strtolower($headerName)] =
$rule;
} public function onMessage(MessageEvent
$event): void
{ $message =
$event->
getMessage();
if (!
$message instanceof Message
) { return;
} $this->
setHeaders($message);
$this->
renderMessage($message);
} private function setHeaders(Message
$message): void
{ if (!
$this->headers
) { return;
} $headers =
$message->
getHeaders();
foreach ($this->headers->
all() as $name =>
$header) { if (!
$headers->
has($name)) {