eee
This commit is contained in:
@@ -93,8 +93,7 @@ class BindForm implements InjectParameterInterface
|
|||||||
$validator->setAlias($property->getName(), $rule->field);
|
$validator->setAlias($property->getName(), $rule->field);
|
||||||
}
|
}
|
||||||
|
|
||||||
$typeProxy = $this->_typeValidator($property);
|
$validator->addRule($property->getName(), [$this->_typeValidator($property), 'dispatch', false]);
|
||||||
$validator->addRule($property->getName(), [$typeProxy, false]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ class Binding implements RequestFilterInterface
|
|||||||
if ($class['class'] === RequiredValidatorFilter::class) {
|
if ($class['class'] === RequiredValidatorFilter::class) {
|
||||||
$isFirst = true;
|
$isFirst = true;
|
||||||
}
|
}
|
||||||
return [Kiri::createObject($class), $isFirst];
|
return [Kiri::createObject($class), 'dispatch', $isFirst];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,7 @@ class BoolProxy extends TypesProxy
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param object $form
|
* @param object $form
|
||||||
|
* @param string $field
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ class FloatProxy extends TypesProxy
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param object $form
|
* @param object $form
|
||||||
|
* @param string $field
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ class StringProxy extends TypesProxy
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @param object $form
|
* @param object $form
|
||||||
|
* @param string $field
|
||||||
* @param mixed $value
|
* @param mixed $value
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user