18 lines
300 B
PHP
18 lines
300 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Validator;
|
||
|
|
||
|
use Symfony\Component\Validator\Constraint;
|
||
|
|
||
|
/**
|
||
|
* @Annotation
|
||
|
*/
|
||
|
class ExistingEmail extends Constraint
|
||
|
{
|
||
|
public $message = 'Le mail "{{ string }}" n\'existe pas.';
|
||
|
|
||
|
public function validatedBy()
|
||
|
{
|
||
|
return static::class.'Validator';
|
||
|
}
|
||
|
}
|