Skip to content

Commit

Permalink
AppKernel. HTTP_HOST для CLI (из переменных окружения).
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Aug 3, 2021
1 parent 406065b commit ad8a08b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function registerStandaloneBundles(): array
*/
private function getSiteHost() : string
{
return $this->getSchema() . $_SERVER['HTTP_HOST'];
return $this->getSchema() . $this->getHttpHost();
}

/**
Expand Down

0 comments on commit ad8a08b

Please sign in to comment.