From 59ab0888b1de09f8022e868c5379cf495da7ca41 Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Sat, 22 Nov 2025 11:56:46 +0100 Subject: [PATCH] remove redundant methods in Transport (#163) --- src/Server/Transport/InMemoryTransport.php | 6 ------ src/Server/Transport/StreamableHttpTransport.php | 4 ---- 2 files changed, 10 deletions(-) diff --git a/src/Server/Transport/InMemoryTransport.php b/src/Server/Transport/InMemoryTransport.php index d567d09..934eeb3 100644 --- a/src/Server/Transport/InMemoryTransport.php +++ b/src/Server/Transport/InMemoryTransport.php @@ -21,8 +21,6 @@ use Symfony\Component\Uid\Uuid; */ class InMemoryTransport extends BaseTransport implements TransportInterface { - use ManagesTransportCallbacks; - /** * @param list $messages */ @@ -33,10 +31,6 @@ class InMemoryTransport extends BaseTransport implements TransportInterface parent::__construct($logger); } - public function initialize(): void - { - } - public function onMessage(callable $listener): void { $this->messageListener = $listener; diff --git a/src/Server/Transport/StreamableHttpTransport.php b/src/Server/Transport/StreamableHttpTransport.php index dcac42d..32a2058 100644 --- a/src/Server/Transport/StreamableHttpTransport.php +++ b/src/Server/Transport/StreamableHttpTransport.php @@ -60,10 +60,6 @@ class StreamableHttpTransport extends BaseTransport implements TransportInterfac ], $corsHeaders); } - public function initialize(): void - { - } - public function send(string $data, array $context): void { $this->immediateResponse = $data;