Skip to content

Commit 2ddd2b3

Browse files
committed
bug #819 [MCP Bundle] Fix transport arguments of McpController (chr-hertel)
This PR was merged into the main branch. Discussion ---------- [MCP Bundle] Fix transport arguments of McpController | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT Follows modelcontextprotocol/php-sdk#118 Commits ------- ee141ea Fix transport arguments of McpController
2 parents 00da77e + ee141ea commit 2ddd2b3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/mcp-bundle/src/Controller/McpController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Psr\Http\Message\ResponseFactoryInterface;
1717
use Psr\Http\Message\StreamFactoryInterface;
1818
use Psr\Log\LoggerInterface;
19-
use Psr\Log\NullLogger;
2019
use Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface;
2120
use Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface;
2221
use Symfony\Component\HttpFoundation\Request;
@@ -40,7 +39,7 @@ public function handle(Request $request): Response
4039
$this->httpMessageFactory->createRequest($request),
4140
$this->responseFactory,
4241
$this->streamFactory,
43-
$this->logger ?? new NullLogger(),
42+
logger: $this->logger,
4443
);
4544

4645
return $this->httpFoundationFactory->createResponse(

0 commit comments

Comments
 (0)