updated core and modules
This commit is contained in:
@@ -20,8 +20,6 @@ use Symfony\Component\Validator\Util\PropertyPath;
|
||||
/**
|
||||
* Default implementation of {@link ConstraintViolationBuilderInterface}.
|
||||
*
|
||||
* @since 2.5
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @internal You should not instantiate or use this class. Code against
|
||||
@@ -199,7 +197,7 @@ class ConstraintViolationBuilder implements ConstraintViolationBuilderInterface
|
||||
$this->message,
|
||||
$this->plural,
|
||||
$this->parameters,
|
||||
$this->translationDomain#
|
||||
$this->translationDomain
|
||||
);
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
$translatedMessage = $this->translator->trans(
|
||||
|
||||
+8
-10
@@ -19,8 +19,6 @@ namespace Symfony\Component\Validator\Violation;
|
||||
* Finally, call {@link addViolation()} to add the violation to the current
|
||||
* execution context.
|
||||
*
|
||||
* @since 2.5
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*/
|
||||
interface ConstraintViolationBuilderInterface
|
||||
@@ -33,7 +31,7 @@ interface ConstraintViolationBuilderInterface
|
||||
*
|
||||
* @param string $path The property path
|
||||
*
|
||||
* @return ConstraintViolationBuilderInterface This builder
|
||||
* @return $this
|
||||
*/
|
||||
public function atPath($path);
|
||||
|
||||
@@ -43,7 +41,7 @@ interface ConstraintViolationBuilderInterface
|
||||
* @param string $key The name of the parameter
|
||||
* @param string $value The value to be inserted in the parameter's place
|
||||
*
|
||||
* @return ConstraintViolationBuilderInterface This builder
|
||||
* @return $this
|
||||
*/
|
||||
public function setParameter($key, $value);
|
||||
|
||||
@@ -54,7 +52,7 @@ interface ConstraintViolationBuilderInterface
|
||||
* the values to be inserted in their place as
|
||||
* values
|
||||
*
|
||||
* @return ConstraintViolationBuilderInterface This builder
|
||||
* @return $this
|
||||
*/
|
||||
public function setParameters(array $parameters);
|
||||
|
||||
@@ -64,7 +62,7 @@ interface ConstraintViolationBuilderInterface
|
||||
*
|
||||
* @param string $translationDomain The translation domain
|
||||
*
|
||||
* @return ConstraintViolationBuilderInterface This builder
|
||||
* @return $this
|
||||
*
|
||||
* @see \Symfony\Component\Translation\TranslatorInterface
|
||||
*/
|
||||
@@ -75,7 +73,7 @@ interface ConstraintViolationBuilderInterface
|
||||
*
|
||||
* @param mixed $invalidValue The invalid value
|
||||
*
|
||||
* @return ConstraintViolationBuilderInterface This builder
|
||||
* @return $this
|
||||
*/
|
||||
public function setInvalidValue($invalidValue);
|
||||
|
||||
@@ -85,7 +83,7 @@ interface ConstraintViolationBuilderInterface
|
||||
*
|
||||
* @param int $number The number for determining the plural form
|
||||
*
|
||||
* @return ConstraintViolationBuilderInterface This builder
|
||||
* @return $this
|
||||
*
|
||||
* @see \Symfony\Component\Translation\TranslatorInterface::transChoice()
|
||||
*/
|
||||
@@ -96,7 +94,7 @@ interface ConstraintViolationBuilderInterface
|
||||
*
|
||||
* @param string|null $code The violation code
|
||||
*
|
||||
* @return ConstraintViolationBuilderInterface This builder
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($code);
|
||||
|
||||
@@ -105,7 +103,7 @@ interface ConstraintViolationBuilderInterface
|
||||
*
|
||||
* @param mixed $cause The cause of the violation
|
||||
*
|
||||
* @return ConstraintViolationBuilderInterface This builder
|
||||
* @return $this
|
||||
*/
|
||||
public function setCause($cause);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user