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