clean code
This commit is contained in:
@@ -89,17 +89,12 @@ class CustomerLogin extends BaseForm
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$context->addViolation('toto');
|
|
||||||
|
|
||||||
$root = $context->getRoot();
|
|
||||||
$password = $root->get('password')->getPropertyPath();
|
|
||||||
$parent = $password->getParent();
|
|
||||||
//$propertyPath =
|
//$propertyPath =
|
||||||
$context->getViolations()->add(new ConstraintViolation(
|
$context->getViolations()->add(new ConstraintViolation(
|
||||||
'failed password',
|
'failed password',
|
||||||
'toto',
|
'toto',
|
||||||
array(),
|
array(),
|
||||||
$root,
|
$context->getRoot(),
|
||||||
'children[password].data',
|
'children[password].data',
|
||||||
'propertyPath'
|
'propertyPath'
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user