[Validator] Moved Optional and Required constraints to dedicated sub namespace.

This commit is contained in:
Bernhard Schussek 2012-01-15 20:31:13 +01:00
parent bf5901850a
commit 509c7bfb5b
4 changed files with 6 additions and 4 deletions

View File

@ -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 File

@ -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 File

@ -14,6 +14,8 @@ namespace Symfony\Component\Validator\Constraints;
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 File

@ -15,8 +15,8 @@ use Symfony\Component\Validator\ExecutionContext;
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;