Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/ProcessManager/WebServerManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ final class WebServerManager
{
use WebServerReadinessProbeTrait;

private $documentRoot;
private $hostname;
private $port;

Expand All @@ -37,7 +36,6 @@ final class WebServerManager
*/
public function __construct(string $documentRoot, string $hostname, int $port)
{
$this->documentRoot = $documentRoot;
$this->hostname = $hostname;
$this->port = $port;

Expand All @@ -46,7 +44,7 @@ public function __construct(string $documentRoot, string $hostname, int $port)
throw new \RuntimeException('Unable to find the PHP binary.');
}

$this->process = new Process([$binary] + $finder->findArguments() + ['-dvariables_order=EGPCS', '-S', \sprintf('%s:%d', $this->hostname, $this->port)], $this->documentRoot, null, null, null);
$this->process = new Process([$binary] + $finder->findArguments() + ['-dvariables_order=EGPCS', '-S', \sprintf('%s:%d', $this->hostname, $this->port)], $documentRoot, null, null, null);
}

public function start(): void
Expand Down