Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\Validator\Constraints; Chris@0: Chris@0: use Symfony\Component\Validator\Constraint; Chris@0: Chris@0: /** Chris@0: * @Annotation Chris@0: * @Target({"PROPERTY", "METHOD", "ANNOTATION"}) Chris@0: * Chris@0: * @author Bernhard Schussek Chris@0: */ Chris@0: class Url extends Constraint Chris@0: { Chris@0: const INVALID_URL_ERROR = '57c2f299-1154-4870-89bb-ef3b1f5ad229'; Chris@0: Chris@0: protected static $errorNames = array( Chris@0: self::INVALID_URL_ERROR => 'INVALID_URL_ERROR', Chris@0: ); Chris@0: Chris@0: public $message = 'This value is not a valid URL.'; Chris@0: public $dnsMessage = 'The host could not be resolved.'; Chris@0: public $protocols = array('http', 'https'); Chris@0: public $checkDNS = false; Chris@0: }