protected function buildConstraint(array $constraint)
    {
        $extraFormConstraint = $this
            ->constraintRegistry
            ->getConstraint($constraint['extra_form_constraint'])
        ;

        $className = $extraFormConstraint->getClassName();
        $options = isset($constraint['options']) ? $constraint['options'] : array();

        return new $className($options);
    }
protected function buildConstraint(array $constraint)
    {
        $extraFormConstraint = $this
            ->constraintRegistry
            ->getConstraint($constraint['extra_form_constraint'])
        ;

        $className = $extraFormConstraint->getClassName();
        $options = isset($constraint['options']) ? $constraint['options'] : array();

        return new $className($options);
    }
protected function buildConstraint ( array $ constraint ) { $ extraFormConstraint = $ this -> constraintRegistry -> getConstraint ( $ constraint [ 'extra_form_constraint' ] ) ; $ className = $ extraFormConstraint -> getClassName ( ) ; $ options = isset ( $ constraint [ 'options' ] ) ? $ constraint [ 'options' ] : array ( ) ; return new $ className ( $ options ) ; }
Build constraint.

@param array $constraint

@return Symfony\Component\Validator\Constraint
Build constraint .