|
@@ 75-80 (lines=6) @@
|
| 72 |
|
$result = $this->extractHost($host); |
| 73 |
|
|
| 74 |
|
// handle case for ***.localhost |
| 75 |
|
if (TenantResolverInterface::LOCALHOST === $result->getSuffix() && |
| 76 |
|
null !== $result->getHostname() && |
| 77 |
|
null === $result->getSubdomain() |
| 78 |
|
) { |
| 79 |
|
return $result->getSuffix(); |
| 80 |
|
} |
| 81 |
|
|
| 82 |
|
$domainString = $result->getHostname(); |
| 83 |
|
if (null !== $result->getSuffix()) { |
|
@@ 102-107 (lines=6) @@
|
| 99 |
|
$result = $this->extractHost($host); |
| 100 |
|
|
| 101 |
|
// handle case for ***.localhost |
| 102 |
|
if (TenantResolverInterface::LOCALHOST === $result->getSuffix() && |
| 103 |
|
null !== $result->getHostname() && |
| 104 |
|
null === $result->getSubdomain() |
| 105 |
|
) { |
| 106 |
|
return $result->getHostname(); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
$subdomain = $result->getSubdomain(); |
| 110 |
|
if (null !== $subdomain) { |