[Validator] Renamed $params to $parameters
This commit is contained in:
parent
321d5bb30a
commit
680f1ee6c7
@ -115,14 +115,14 @@ class ExecutionContext implements ExecutionContextInterface
|
|||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
public function addViolationAt($subPath, $message, array $params = array(), $invalidValue = null, $pluralization = null, $code = null)
|
public function addViolationAt($subPath, $message, array $parameters = array(), $invalidValue = null, $pluralization = null, $code = null)
|
||||||
{
|
{
|
||||||
$this->globalContext->getViolations()->add(new ConstraintViolation(
|
$this->globalContext->getViolations()->add(new ConstraintViolation(
|
||||||
null === $pluralization
|
null === $pluralization
|
||||||
? $this->translator->trans($message, $params, $this->translationDomain)
|
? $this->translator->trans($message, $parameters, $this->translationDomain)
|
||||||
: $this->translator->transChoice($message, $pluralization, $params, $this->translationDomain),
|
: $this->translator->transChoice($message, $pluralization, $parameters, $this->translationDomain),
|
||||||
$message,
|
$message,
|
||||||
$params,
|
$parameters,
|
||||||
$this->globalContext->getRoot(),
|
$this->globalContext->getRoot(),
|
||||||
$this->getPropertyPath($subPath),
|
$this->getPropertyPath($subPath),
|
||||||
// check using func_num_args() to allow passing null values
|
// check using func_num_args() to allow passing null values
|
||||||
|
@ -104,14 +104,14 @@ interface ExecutionContextInterface
|
|||||||
*
|
*
|
||||||
* @param string $subPath The relative property path for the violation.
|
* @param string $subPath The relative property path for the violation.
|
||||||
* @param string $message The error message.
|
* @param string $message The error message.
|
||||||
* @param array $params The parameters substituted in the error message.
|
* @param array $parameters The parameters substituted in the error message.
|
||||||
* @param mixed $invalidValue The invalid, validated value.
|
* @param mixed $invalidValue The invalid, validated value.
|
||||||
* @param integer|null $pluralization The number to use to pluralize of the message.
|
* @param integer|null $pluralization The number to use to pluralize of the message.
|
||||||
* @param integer|null $code The violation code.
|
* @param integer|null $code The violation code.
|
||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
public function addViolationAt($subPath, $message, array $params = array(), $invalidValue = null, $pluralization = null, $code = null);
|
public function addViolationAt($subPath, $message, array $parameters = array(), $invalidValue = null, $pluralization = null, $code = null);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates the given value within the scope of the current validation.
|
* Validates the given value within the scope of the current validation.
|
||||||
|
Reference in New Issue
Block a user