public function configureRule(Rule $rule)
    {
        if ($config = $this->getRuleConfig($rule)) {
            
            if (isset($config['type'])) {
                $rule->setType($config['type']);
            }
            
            if (isset($config['format'])) {
                $rule->setFormat($config['format']);
            }
            
            if (isset($config['attribute'])) {
                $rule->setAttribute($config['attribute']);
            }
            
        }
        
        return $rule;
    }
public function configureRule(Rule $rule)
    {
        if ($config = $this->getRuleConfig($rule)) {
            
            if (isset($config['type'])) {
                $rule->setType($config['type']);
            }
            
            if (isset($config['format'])) {
                $rule->setFormat($config['format']);
            }
            
            if (isset($config['attribute'])) {
                $rule->setAttribute($config['attribute']);
            }
            
        }
        
        return $rule;
    }
public function configureRule ( Rule $ rule ) { if ( $ config = $ this -> getRuleConfig ( $ rule ) ) { if ( isset ( $ config [ 'type' ] ) ) { $ rule -> setType ( $ config [ 'type' ] ) ; } if ( isset ( $ config [ 'format' ] ) ) { $ rule -> setFormat ( $ config [ 'format' ] ) ; } if ( isset ( $ config [ 'attribute' ] ) ) { $ rule -> setAttribute ( $ config [ 'attribute' ] ) ; } } return $ rule ; }
Applies configuration to the provided validator rule.

@param Rule $rule

@return Rule
Applies configuration to the provided validator rule .