Skip to content

Commit

Permalink
Update MultiVersion.php
Browse files Browse the repository at this point in the history
allow override topdomain
  • Loading branch information
YOUR1 authored Mar 15, 2022
1 parent af6889f commit e7d33b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MultiVersion.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private function getBaseUrlPath( string $environment ) : string {

$useSsl = $this->yamlMainConfig[ 'use_ssl' ] ?? true;
$environment = $this->yamlMainConfig[ 'environments' ][ $environment ];
$topDomain = $this->yamlMainConfig[ 'top_domain' ];
$topDomain = $this->yamlMainConfig[ 'config_' . $environment ]['top_domain'] ?? $this->yamlMainConfig[ 'top_domain' ];

return ( $useSsl ? "https" : "http" ) . "://{$environment}.$topDomain";

Expand Down

0 comments on commit e7d33b9

Please sign in to comment.