Skip to content

Commit 7ee8923

Browse files
committed
fix root path
1 parent 504c9e3 commit 7ee8923

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Console/MCPServerCommand.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,9 @@ public function __invoke(
5858
->determineRootPath($configPath)
5959
->withEnvFile($envFileName);
6060

61-
$this->logger->info(\sprintf('Using root path: %s', $dirs->rootPath));
61+
$this->container->bindSingleton(Directories::class, $dirs);
6262

63-
$this->container->bindSingleton(
64-
Directories::class,
65-
$dirs = $this->dirs
66-
->withConfigPath($configPath),
67-
);
63+
$this->logger->info(\sprintf('Using root path: %s', $dirs->rootPath));
6864

6965
// Create the document compiler
7066
$compiler = $documentCompilerFactory->create(dirs: $dirs);

0 commit comments

Comments
 (0)