Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d83ca9

Browse files
authored
Merge pull request symfony#31 from Pierstoval/docroot
Explicitly add document root to PHP's web server command line
2 parents d638f38 + d1ed2ae commit 5d83ca9

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/ProcessManager/WebServerManager.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,17 @@ public function __construct(string $documentRoot, string $hostname, int $port)
4545
}
4646

4747
$this->process = new Process(
48-
\array_merge([$binary], $finder->findArguments(), ['-dvariables_order=EGPCS', '-S', \sprintf('%s:%d', $this->hostname, $this->port)]),
48+
\array_merge(
49+
[$binary],
50+
$finder->findArguments(),
51+
[
52+
'-dvariables_order=EGPCS',
53+
'-S',
54+
\sprintf('%s:%d', $this->hostname, $this->port),
55+
'-t',
56+
$documentRoot,
57+
]
58+
),
4959
$documentRoot,
5060
null,
5161
null,

0 commit comments

Comments
 (0)