Update to Drupal 8.0-dev-2015-11-17. Commits through da81cd220, Tue Nov 17 15:53:49 2015 +0000, Issue #2617224 by Wim Leers: Move around/fix some documentation.
This commit is contained in:
parent
4afb23bbd3
commit
7784f4c23d
929 changed files with 19798 additions and 5304 deletions
14
vendor/symfony/validator/Constraint.php
vendored
14
vendor/symfony/validator/Constraint.php
vendored
|
@ -28,8 +28,6 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
|
|||
* @property array $groups The groups that the constraint belongs to
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
abstract class Constraint
|
||||
{
|
||||
|
@ -116,8 +114,6 @@ abstract class Constraint
|
|||
* @throws ConstraintDefinitionException When you don't pass an associative
|
||||
* array, but getDefaultOption() returns
|
||||
* null
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function __construct($options = null)
|
||||
{
|
||||
|
@ -229,8 +225,6 @@ abstract class Constraint
|
|||
* Adds the given group if this constraint is in the Default group.
|
||||
*
|
||||
* @param string $group
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function addImplicitGroupName($group)
|
||||
{
|
||||
|
@ -247,8 +241,6 @@ abstract class Constraint
|
|||
* @return string
|
||||
*
|
||||
* @see __construct()
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getDefaultOption()
|
||||
{
|
||||
|
@ -262,8 +254,6 @@ abstract class Constraint
|
|||
* @return array
|
||||
*
|
||||
* @see __construct()
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getRequiredOptions()
|
||||
{
|
||||
|
@ -278,8 +268,6 @@ abstract class Constraint
|
|||
* behaviour.
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function validatedBy()
|
||||
{
|
||||
|
@ -294,8 +282,6 @@ abstract class Constraint
|
|||
* Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.
|
||||
*
|
||||
* @return string|array One or more constant values
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getTargets()
|
||||
{
|
||||
|
|
|
@ -19,8 +19,6 @@ use Symfony\Component\Validator\Violation\LegacyConstraintViolationBuilder;
|
|||
* Base class for constraint validators.
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
abstract class ConstraintValidator implements ConstraintValidatorInterface
|
||||
{
|
||||
|
|
|
@ -13,8 +13,6 @@ namespace Symfony\Component\Validator;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
interface ConstraintValidatorInterface
|
||||
{
|
||||
|
@ -30,8 +28,6 @@ interface ConstraintValidatorInterface
|
|||
*
|
||||
* @param mixed $value The value that should be validated
|
||||
* @param Constraint $constraint The constraint for the validation
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function validate($value, Constraint $constraint);
|
||||
}
|
||||
|
|
|
@ -32,8 +32,6 @@ namespace Symfony\Component\Validator;
|
|||
* element is still the person, but the property path is "address.street".
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
interface ConstraintViolationInterface
|
||||
{
|
||||
|
@ -41,8 +39,6 @@ interface ConstraintViolationInterface
|
|||
* Returns the violation message.
|
||||
*
|
||||
* @return string The violation message.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getMessage();
|
||||
|
||||
|
@ -54,8 +50,6 @@ interface ConstraintViolationInterface
|
|||
* message template and parameters to a translation engine.
|
||||
*
|
||||
* @return string The raw violation message.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getMessageTemplate();
|
||||
|
||||
|
@ -67,8 +61,6 @@ interface ConstraintViolationInterface
|
|||
*
|
||||
* @see getMessageTemplate()
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @deprecated since version 2.7, to be replaced by getParameters() in 3.0.
|
||||
*/
|
||||
public function getMessageParameters();
|
||||
|
@ -100,8 +92,6 @@ interface ConstraintViolationInterface
|
|||
* the validation was started. Because the validator traverses
|
||||
* the object graph, the value at which the violation occurs
|
||||
* is not necessarily the value that was originally validated.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getRoot();
|
||||
|
||||
|
@ -116,8 +106,6 @@ interface ConstraintViolationInterface
|
|||
* path is "address.street". Property access is denoted by
|
||||
* dots, while array access is denoted by square brackets,
|
||||
* for example "addresses[1].street".
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getPropertyPath();
|
||||
|
||||
|
@ -126,8 +114,6 @@ interface ConstraintViolationInterface
|
|||
*
|
||||
* @return mixed The invalid value that caused the validated constraint to
|
||||
* fail.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getInvalidValue();
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@ namespace Symfony\Component\Validator;
|
|||
* A list of constraint violations.
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
interface ConstraintViolationListInterface extends \Traversable, \Countable, \ArrayAccess
|
||||
{
|
||||
|
@ -24,8 +22,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar
|
|||
* Adds a constraint violation to this list.
|
||||
*
|
||||
* @param ConstraintViolationInterface $violation The violation to add.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function add(ConstraintViolationInterface $violation);
|
||||
|
||||
|
@ -33,8 +29,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar
|
|||
* Merges an existing violation list into this list.
|
||||
*
|
||||
* @param ConstraintViolationListInterface $otherList The list to merge.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function addAll(ConstraintViolationListInterface $otherList);
|
||||
|
||||
|
@ -46,8 +40,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar
|
|||
* @return ConstraintViolationInterface The violation.
|
||||
*
|
||||
* @throws \OutOfBoundsException If the offset does not exist.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function get($offset);
|
||||
|
||||
|
@ -57,8 +49,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar
|
|||
* @param int $offset The violation offset.
|
||||
*
|
||||
* @return bool Whether the offset exists.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function has($offset);
|
||||
|
||||
|
@ -67,8 +57,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar
|
|||
*
|
||||
* @param int $offset The violation offset.
|
||||
* @param ConstraintViolationInterface $violation The violation.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function set($offset, ConstraintViolationInterface $violation);
|
||||
|
||||
|
@ -76,8 +64,6 @@ interface ConstraintViolationListInterface extends \Traversable, \Countable, \Ar
|
|||
* Removes a violation at a given offset.
|
||||
*
|
||||
* @param int $offset The offset to remove.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function remove($offset);
|
||||
}
|
||||
|
|
2
vendor/symfony/validator/Constraints/All.php
vendored
2
vendor/symfony/validator/Constraints/All.php
vendored
|
@ -16,8 +16,6 @@ namespace Symfony\Component\Validator\Constraints;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class All extends Composite
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class AllValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Blank extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class BlankValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"CLASS", "PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Callback extends Constraint
|
||||
{
|
||||
|
|
|
@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
* Validator for Callback constraint.
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class CallbackValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Choice extends Constraint
|
||||
{
|
||||
|
|
|
@ -23,8 +23,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Florian Eckerstorfer <florian@eckerstorfer.org>
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class ChoiceValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Collection extends Composite
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class CollectionValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Count extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Country extends Constraint
|
||||
{
|
||||
|
|
|
@ -21,8 +21,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
* Validates whether a value is a valid country code.
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class CountryValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Miha Vrhovnik <miha.vrhovnik@pagein.si>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Currency extends Constraint
|
||||
{
|
||||
|
|
|
@ -21,8 +21,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
* Validates whether a value is a valid currency.
|
||||
*
|
||||
* @author Miha Vrhovnik <miha.vrhovnik@pagein.si>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class CurrencyValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Date extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class DateTime extends Constraint
|
||||
{
|
||||
|
|
|
@ -17,8 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class DateTimeValidator extends DateValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class DateValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Email extends Constraint
|
||||
{
|
||||
|
|
|
@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class EmailValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class File extends Constraint
|
||||
{
|
||||
|
|
|
@ -20,8 +20,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class FileValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -54,8 +54,6 @@ use Symfony\Component\Validator\Exception\OutOfBoundsException;
|
|||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* Implementing \ArrayAccess, \IteratorAggregate and \Countable is @deprecated since 2.5 and will be removed in 3.0.
|
||||
*/
|
||||
class GroupSequence implements \ArrayAccess, \IteratorAggregate, \Countable
|
||||
|
|
|
@ -17,8 +17,6 @@ namespace Symfony\Component\Validator\Constraints;
|
|||
*
|
||||
* @author Benjamin Dulau <benjamin.dulau@gmail.com>
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Image extends File
|
||||
{
|
||||
|
|
2
vendor/symfony/validator/Constraints/Ip.php
vendored
2
vendor/symfony/validator/Constraints/Ip.php
vendored
|
@ -22,8 +22,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
|||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
* @author Joseph Bielawski <stloyd@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Ip extends Constraint
|
||||
{
|
||||
|
|
|
@ -21,8 +21,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
* @author Joseph Bielawski <stloyd@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class IpValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class IsFalse extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class IsFalseValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class IsNull extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class IsNullValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class IsTrue extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class IsTrueValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Language extends Constraint
|
||||
{
|
||||
|
|
|
@ -21,8 +21,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
* Validates whether a value is a valid language code.
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class LanguageValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Length extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Locale extends Constraint
|
||||
{
|
||||
|
|
|
@ -21,8 +21,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
* Validates whether a value is a valid locale code.
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class LocaleValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class NotBlank extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class NotBlankValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class NotNull extends Constraint
|
||||
{
|
||||
|
|
|
@ -17,8 +17,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class NotNullValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\MissingOptionsException;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Range extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Regex extends Constraint
|
||||
{
|
||||
|
|
|
@ -21,8 +21,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
* @author Joseph Bielawski <stloyd@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class RegexValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Time extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class TimeValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Type extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class TypeValidator extends ConstraintValidator
|
||||
{
|
||||
|
|
2
vendor/symfony/validator/Constraints/Url.php
vendored
2
vendor/symfony/validator/Constraints/Url.php
vendored
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Constraint;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Url extends Constraint
|
||||
{
|
||||
|
|
|
@ -18,8 +18,6 @@ use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|||
|
||||
/**
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class UrlValidator extends ConstraintValidator
|
||||
{
|
||||
|
@ -36,7 +34,7 @@ class UrlValidator extends ConstraintValidator
|
|||
\] # a IPv6 address
|
||||
)
|
||||
(:[0-9]+)? # a port (optional)
|
||||
(/?|/\S+) # a /, nothing or a / with something
|
||||
(/?|/\S+|\?|\#) # a /, nothing, a / with something, a query or a fragment
|
||||
$~ixu';
|
||||
|
||||
/**
|
||||
|
@ -48,7 +46,7 @@ class UrlValidator extends ConstraintValidator
|
|||
throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\Url');
|
||||
}
|
||||
|
||||
if (null === $value || '' === $value) {
|
||||
if (null === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -57,6 +55,10 @@ class UrlValidator extends ConstraintValidator
|
|||
}
|
||||
|
||||
$value = (string) $value;
|
||||
if ('' === $value) {
|
||||
return;
|
||||
}
|
||||
|
||||
$pattern = sprintf(static::PATTERN, implode('|', $constraint->protocols));
|
||||
|
||||
if (!preg_match($pattern, $value)) {
|
||||
|
|
|
@ -19,8 +19,6 @@ use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
|||
* @Target({"PROPERTY", "METHOD", "ANNOTATION"})
|
||||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
class Valid extends Constraint
|
||||
{
|
||||
|
|
|
@ -81,8 +81,6 @@ namespace Symfony\Component\Validator;
|
|||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @deprecated since version 2.5, to be removed in 3.0.
|
||||
* Use {@link Context\ExecutionContextInterface} instead.
|
||||
*/
|
||||
|
@ -98,8 +96,6 @@ interface ExecutionContextInterface
|
|||
* @param mixed $invalidValue The invalid, validated value
|
||||
* @param int|null $plural The number to use to pluralize of the message
|
||||
* @param int|null $code The violation code
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function addViolation($message, array $params = array(), $invalidValue = null, $plural = null, $code = null);
|
||||
|
||||
|
@ -114,8 +110,6 @@ interface ExecutionContextInterface
|
|||
* @param int|null $plural The number to use to pluralize of the message
|
||||
* @param int|null $code The violation code
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @deprecated since version 2.5, to be removed in 3.0.
|
||||
* Use {@link Context\ExecutionContextInterface::buildViolation()}
|
||||
* instead.
|
||||
|
@ -204,8 +198,6 @@ interface ExecutionContextInterface
|
|||
* Returns the violations generated by the validator so far.
|
||||
*
|
||||
* @return ConstraintViolationListInterface The constraint violation list.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function getViolations();
|
||||
|
||||
|
|
|
@ -19,8 +19,6 @@ namespace Symfony\Component\Validator;
|
|||
*
|
||||
* @author Fabien Potencier <fabien@symfony.com>
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
interface ObjectInitializerInterface
|
||||
{
|
||||
|
@ -28,8 +26,6 @@ interface ObjectInitializerInterface
|
|||
* Initializes an object just before validation.
|
||||
*
|
||||
* @param object $object The object to validate
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function initialize($object);
|
||||
}
|
||||
|
|
|
@ -224,7 +224,7 @@
|
|||
</trans-unit>
|
||||
<trans-unit id="59">
|
||||
<source>This is not a valid International Bank Account Number (IBAN).</source>
|
||||
<target>Dieser Wert ist keine gültige IBAN-Kontonummer.</target>
|
||||
<target>Dieser Wert ist keine gültige internationale Bankkontonummer (IBAN).</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="60">
|
||||
<source>This value is not a valid ISBN-10.</source>
|
||||
|
|
|
@ -302,6 +302,18 @@
|
|||
<source>An empty file is not allowed.</source>
|
||||
<target>Un file vuoto non è consentito.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="79">
|
||||
<source>The host could not be resolved.</source>
|
||||
<target>L'host non può essere risolto.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="80">
|
||||
<source>This value does not match the expected {{ charset }} charset.</source>
|
||||
<target>Questo valore non corrisponde al charset {{ charset }}.</target>
|
||||
</trans-unit>
|
||||
<trans-unit id="81">
|
||||
<source>This is not a valid Business Identifier Code (BIC).</source>
|
||||
<target>Questo valore non è un codice BIC valido.</target>
|
||||
</trans-unit>
|
||||
</body>
|
||||
</file>
|
||||
</xliff>
|
||||
|
|
|
@ -44,6 +44,16 @@ class RecursiveContextualValidator implements ContextualValidatorInterface
|
|||
*/
|
||||
private $context;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
private $defaultPropertyPath;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
private $defaultGroups;
|
||||
|
||||
/**
|
||||
* @var MetadataFactoryInterface
|
||||
*/
|
||||
|
|
12
vendor/symfony/validator/ValidatorInterface.php
vendored
12
vendor/symfony/validator/ValidatorInterface.php
vendored
|
@ -16,8 +16,6 @@ namespace Symfony\Component\Validator;
|
|||
*
|
||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @deprecated since version 2.5, to be removed in 3.0.
|
||||
* Use {@link \Symfony\Component\Validator\Validator\ValidatorInterface} instead.
|
||||
*/
|
||||
|
@ -40,8 +38,6 @@ interface ValidatorInterface
|
|||
*
|
||||
* @return ConstraintViolationListInterface A list of constraint violations. If the
|
||||
* list is empty, validation succeeded.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function validate($value, $groups = null, $traverse = false, $deep = false);
|
||||
|
||||
|
@ -57,8 +53,6 @@ interface ValidatorInterface
|
|||
*
|
||||
* @return ConstraintViolationListInterface A list of constraint violations. If the
|
||||
* list is empty, validation succeeded.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function validateProperty($containingValue, $property, $groups = null);
|
||||
|
||||
|
@ -76,8 +70,6 @@ interface ValidatorInterface
|
|||
*
|
||||
* @return ConstraintViolationListInterface A list of constraint violations. If the
|
||||
* list is empty, validation succeeded.
|
||||
*
|
||||
* @api
|
||||
*/
|
||||
public function validatePropertyValue($containingValue, $property, $value, $groups = null);
|
||||
|
||||
|
@ -91,8 +83,6 @@ interface ValidatorInterface
|
|||
* @return ConstraintViolationListInterface A list of constraint violations. If the
|
||||
* list is empty, validation succeeded.
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @deprecated since version 2.5, to be removed in 3.0.
|
||||
* Renamed to {@link Validator\ValidatorInterface::validate()}
|
||||
* in Symfony 2.5.
|
||||
|
@ -104,8 +94,6 @@ interface ValidatorInterface
|
|||
*
|
||||
* @return MetadataFactoryInterface The metadata factory.
|
||||
*
|
||||
* @api
|
||||
*
|
||||
* @deprecated since version 2.5, to be removed in 3.0.
|
||||
* Use {@link Validator\ValidatorInterface::getMetadataFor()} or
|
||||
* {@link Validator\ValidatorInterface::hasMetadataFor()}
|
||||
|
|
2
vendor/symfony/validator/composer.json
vendored
2
vendor/symfony/validator/composer.json
vendored
|
@ -20,7 +20,7 @@
|
|||
"symfony/translation": "~2.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/phpunit-bridge": "~2.7",
|
||||
"doctrine/common": "~2.3",
|
||||
"symfony/http-foundation": "~2.1",
|
||||
"symfony/intl": "~2.4",
|
||||
"symfony/yaml": "~2.0,>=2.0.5",
|
||||
|
|
Reference in a new issue