Skip to content
Browse files

[Validator] Removed the Size constraint which did not exist in 2.0

  • Loading branch information...
1 parent 2213a29 commit 4c2daafebe1c71c2d4771547da49e4476b315be9 @webmozart webmozart committed
Showing with 1 addition and 59 deletions.
  1. +1 −1 CHANGELOG.md
  2. +0 −32 Constraints/Size.php
  3. +0 −26 Constraints/SizeValidator.php
View
2 CHANGELOG.md
@@ -23,6 +23,6 @@ CHANGELOG
which enables the BC behavior.
* added Count constraint
* added Length constraint
- * deprecated the Size constraint and renamed it to Range
+ * added Range constraint
* deprecated the Min and Max constraints
* deprecated the MinLength and MaxLength constraints
View
32 Constraints/Size.php
@@ -1,32 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Validator\Constraints;
-
-use Symfony\Component\Validator\Constraint;
-
-/**
- * @Annotation
- *
- * @api
- *
- * @deprecated Deprecated since version 2.1, to be removed in 2.3.
- */
-class Size extends Range
-{
- /**
- * {@inheritDoc}
- */
- public function validatedBy()
- {
- return get_parent_class($this).'Validator';
- }
-}
View
26 Constraints/SizeValidator.php
@@ -1,26 +0,0 @@
-<?php
-
-/*
- * This file is part of the Symfony package.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- *
- * For the full copyright and license information, please view the LICENSE
- * file that was distributed with this source code.
- */
-
-namespace Symfony\Component\Validator\Constraints;
-
-use Symfony\Component\Validator\Constraint;
-use Symfony\Component\Validator\ConstraintValidator;
-
-/**
- * @author Bernhard Schussek <bschussek@gmail.com>
- *
- * @api
- *
- * @deprecated Deprecated since version 2.1, to be removed in 2.3.
- */
-class SizeValidator extends RangeValidator
-{
-}

0 comments on commit 4c2daaf

Please sign in to comment.
Something went wrong with that request. Please try again.