Skip to content

Commit a719718

Browse files
committed
Update loader’s directory when calling ContainerConfigurator::withPath
1 parent 22b1ed3 commit a719718

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Loader/Configurator/ContainerConfigurator.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ final public function withPath(string $path): self
7878
{
7979
$clone = clone $this;
8080
$clone->path = $clone->file = $path;
81+
$clone->loader->setCurrentDir(\dirname($path));
8182

8283
return $clone;
8384
}

0 commit comments

Comments
 (0)