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
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
|
||||
{
|
||||
|
|
Reference in a new issue