Mercurial > hg > cmmr2012-drupal-site
comparison vendor/symfony/validator/Constraints/Url.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
comparison
equal
deleted
inserted
replaced
3:307d7a7fd348 | 4:a9cd425dd02b |
---|---|
35 const CHECK_DNS_TYPE_SRV = 'SRV'; | 35 const CHECK_DNS_TYPE_SRV = 'SRV'; |
36 const CHECK_DNS_TYPE_TXT = 'TXT'; | 36 const CHECK_DNS_TYPE_TXT = 'TXT'; |
37 | 37 |
38 const INVALID_URL_ERROR = '57c2f299-1154-4870-89bb-ef3b1f5ad229'; | 38 const INVALID_URL_ERROR = '57c2f299-1154-4870-89bb-ef3b1f5ad229'; |
39 | 39 |
40 protected static $errorNames = array( | 40 protected static $errorNames = [ |
41 self::INVALID_URL_ERROR => 'INVALID_URL_ERROR', | 41 self::INVALID_URL_ERROR => 'INVALID_URL_ERROR', |
42 ); | 42 ]; |
43 | 43 |
44 public $message = 'This value is not a valid URL.'; | 44 public $message = 'This value is not a valid URL.'; |
45 public $dnsMessage = 'The host could not be resolved.'; | 45 public $dnsMessage = 'The host could not be resolved.'; |
46 public $protocols = array('http', 'https'); | 46 public $protocols = ['http', 'https']; |
47 public $checkDNS = self::CHECK_DNS_TYPE_NONE; | 47 public $checkDNS = self::CHECK_DNS_TYPE_NONE; |
48 } | 48 } |