Skip to content

Commit 0c6f167

Browse files
authored
Merge pull request #100 from context-hub/bug-fixes
fix root path
2 parents 5f4b299 + 7ee8923 commit 0c6f167

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)