[Validator] Moved Optional and Required constraints to dedicated sub namespace.
This commit is contained in:
parent
bf5901850a
commit
509c7bfb5b
|
@ -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;
|
||||
|
|
@ -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;
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Reference in New Issue