| 1 | <?php |
||
| 30 | class UrlValidator implements ValidatorInterface |
||
| 31 | { |
||
| 32 | |||
| 33 | use AllowEmpty, |
||
| 34 | Messages, |
||
| 35 | OnScenario, |
||
| 36 | Safe, |
||
| 37 | SkipOnError; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @Label('{attribute} must be valid url') |
||
| 41 | * @var string |
||
| 42 | */ |
||
| 43 | public $msgNotUrl = ''; |
||
| 44 | |||
| 45 | 4 | public function isValid(AnnotatedInterface $model, $attribute) |
|
| 56 | |||
| 57 | } |
||
| 58 |