for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the FOSUserBundle package.
*
* (c) FriendsOfSymfony <http://friendsofsymfony.github.com/>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace DoL\LdapBundle\Validator;
use Symfony\Component\Validator\Constraint;
/**
* Constraint for the Unique validator.
* @Annotation
* @Target({"CLASS", "ANNOTATION"})
* @author DarwinOnLine
* @author Maks3w
* @see https://github.com/DarwinOnLine/DoLLdapBundle
class Unique extends Constraint
{
public $message = 'User already exists.';
public function validatedBy()
return 'dol_ldap.validator.unique';
}
* {@inheritdoc}
public function getTargets()
return self::CLASS_CONSTRAINT;