[Validator] Renamed $params to $parameters

This commit is contained in:
Bernhard Schussek 2014-02-17 18:34:00 +01:00
parent 321d5bb30a
commit 680f1ee6c7
2 changed files with 6 additions and 6 deletions

View File

@ -115,14 +115,14 @@ class ExecutionContext implements ExecutionContextInterface
/**
* {@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(
null === $pluralization
? $this->translator->trans($message, $params, $this->translationDomain)
: $this->translator->transChoice($message, $pluralization, $params, $this->translationDomain),
? $this->translator->trans($message, $parameters, $this->translationDomain)
: $this->translator->transChoice($message, $pluralization, $parameters, $this->translationDomain),
$message,
$params,
$parameters,
$this->globalContext->getRoot(),
$this->getPropertyPath($subPath),
// check using func_num_args() to allow passing null values

View File

@ -104,14 +104,14 @@ interface ExecutionContextInterface
*
* @param string $subPath The relative property path for the violation.
* @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 integer|null $pluralization The number to use to pluralize of the message.
* @param integer|null $code The violation code.
*
* @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.