HostnamePolicy
final class HostnamePolicy (View source)
The three dns.* settings that decide how strictly a hostname's labels and TLD are checked.
Methods
__construct(bool $topLevelTldCheck = false, bool $strictTldCheck = false, array $customTlds = [])
No description
static HostnamePolicy
bool
allowsCustomTld(string $tld)
Whether the TLD is on the custom list (case-insensitive).
Details
__construct(bool $topLevelTldCheck = false, bool $strictTldCheck = false, array $customTlds = [])
No description
static HostnamePolicy
fromConfig(ConfigurationInterface $config)
No description
bool
allowsCustomTld(string $tld)
Whether the TLD is on the custom list (case-insensitive).