Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[Validator] Moved Optional and Required constraints to dedicated sub …

…namespace.
  • Loading branch information...
commit 509c7bfb5b8d2f05c561a3fff57476e521939fea 1 parent bf59018
@webmozart webmozart authored
View
2  ...ponent/Validator/Constraints/Optional.php → ...dator/Constraints/Collection/Optional.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\Validator\Constraints;
+namespace Symfony\Component\Validator\Constraints\Collection;
use Symfony\Component\Validator\Constraint;
View
2  ...ponent/Validator/Constraints/Required.php → ...dator/Constraints/Collection/Required.php
@@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
-namespace Symfony\Component\Validator\Constraints;
+namespace Symfony\Component\Validator\Constraints\Collection;
use Symfony\Component\Validator\Constraint;
View
2  src/Symfony/Component/Validator/Constraints/CollectionValidator.php
@@ -14,6 +14,8 @@
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
+use Symfony\Component\Validator\Constraints\Collection\Optional;
+use Symfony\Component\Validator\Constraints\Collection\Required;
/**
* @api
View
4 tests/Symfony/Tests/Component/Validator/Constraints/CollectionValidatorTest.php
@@ -15,8 +15,8 @@
use Symfony\Component\Validator\Constraints\Min;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\NotNull;
-use Symfony\Component\Validator\Constraints\Required;
-use Symfony\Component\Validator\Constraints\Optional;
+use Symfony\Component\Validator\Constraints\Collection\Required;
+use Symfony\Component\Validator\Constraints\Collection\Optional;
use Symfony\Component\Validator\Constraints\Collection;
use Symfony\Component\Validator\Constraints\CollectionValidator;
Please sign in to comment.
Something went wrong with that request. Please try again.