[Validator] Optimized use statements
This commit is contained in:
parent
1622eb3a98
commit
94ef21e495
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator;
|
namespace Symfony\Component\Validator;
|
||||||
|
|
||||||
|
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
||||||
use Symfony\Component\Validator\Exception\InvalidOptionsException;
|
use Symfony\Component\Validator\Exception\InvalidOptionsException;
|
||||||
use Symfony\Component\Validator\Exception\MissingOptionsException;
|
use Symfony\Component\Validator\Exception\MissingOptionsException;
|
||||||
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Contains the properties of a constraint definition.
|
* Contains the properties of a constraint definition.
|
||||||
|
@ -13,8 +13,8 @@ namespace Symfony\Component\Validator\Constraints;
|
|||||||
|
|
||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\ConstraintValidator;
|
use Symfony\Component\Validator\ConstraintValidator;
|
||||||
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
|
||||||
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
||||||
|
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validator for Callback constraint
|
* Validator for Callback constraint
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Constraints;
|
namespace Symfony\Component\Validator\Constraints;
|
||||||
|
|
||||||
|
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
||||||
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
||||||
use Symfony\Component\PropertyAccess\PropertyPath;
|
use Symfony\Component\PropertyAccess\PropertyPath;
|
||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\ConstraintValidator;
|
use Symfony\Component\Validator\ConstraintValidator;
|
||||||
use Symfony\Component\ExpressionLanguage\ExpressionLanguage;
|
|
||||||
use Symfony\Component\Validator\Exception\RuntimeException;
|
use Symfony\Component\Validator\Exception\RuntimeException;
|
||||||
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
||||||
|
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Constraints;
|
namespace Symfony\Component\Validator\Constraints;
|
||||||
|
|
||||||
|
use Symfony\Component\HttpFoundation\File\File as FileObject;
|
||||||
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\ConstraintValidator;
|
use Symfony\Component\Validator\ConstraintValidator;
|
||||||
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
||||||
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
||||||
use Symfony\Component\HttpFoundation\File\File as FileObject;
|
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Bernhard Schussek <bschussek@gmail.com>
|
* @author Bernhard Schussek <bschussek@gmail.com>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Constraints;
|
namespace Symfony\Component\Validator\Constraints;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
|
||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
|
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Validates that a value is a valid IP address
|
* Validates that a value is a valid IP address
|
||||||
|
@ -16,10 +16,8 @@ use Symfony\Component\Validator\ClassBasedInterface;
|
|||||||
use Symfony\Component\Validator\ConstraintViolation;
|
use Symfony\Component\Validator\ConstraintViolation;
|
||||||
use Symfony\Component\Validator\ConstraintViolationList;
|
use Symfony\Component\Validator\ConstraintViolationList;
|
||||||
use Symfony\Component\Validator\Exception\BadMethodCallException;
|
use Symfony\Component\Validator\Exception\BadMethodCallException;
|
||||||
use Symfony\Component\Validator\Group\GroupManagerInterface;
|
|
||||||
use Symfony\Component\Validator\Mapping\MetadataInterface;
|
use Symfony\Component\Validator\Mapping\MetadataInterface;
|
||||||
use Symfony\Component\Validator\Mapping\PropertyMetadataInterface;
|
use Symfony\Component\Validator\Mapping\PropertyMetadataInterface;
|
||||||
use Symfony\Component\Validator\Node\Node;
|
|
||||||
use Symfony\Component\Validator\Util\PropertyPath;
|
use Symfony\Component\Validator\Util\PropertyPath;
|
||||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||||
use Symfony\Component\Validator\Violation\ConstraintViolationBuilder;
|
use Symfony\Component\Validator\Violation\ConstraintViolationBuilder;
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Component\Validator\Context;
|
namespace Symfony\Component\Validator\Context;
|
||||||
|
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
use Symfony\Component\Validator\Group\GroupManagerInterface;
|
|
||||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -13,7 +13,6 @@ namespace Symfony\Component\Validator\Context;
|
|||||||
|
|
||||||
use Symfony\Component\Validator\ExecutionContextInterface as LegacyExecutionContextInterface;
|
use Symfony\Component\Validator\ExecutionContextInterface as LegacyExecutionContextInterface;
|
||||||
use Symfony\Component\Validator\Mapping\MetadataInterface;
|
use Symfony\Component\Validator\Mapping\MetadataInterface;
|
||||||
use Symfony\Component\Validator\Node\Node;
|
|
||||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||||
use Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface;
|
use Symfony\Component\Validator\Violation\ConstraintViolationBuilderInterface;
|
||||||
|
|
||||||
|
@ -12,13 +12,9 @@
|
|||||||
namespace Symfony\Component\Validator\Context;
|
namespace Symfony\Component\Validator\Context;
|
||||||
|
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
use Symfony\Component\Validator\Constraints\Traverse;
|
|
||||||
use Symfony\Component\Validator\Constraints\Valid;
|
use Symfony\Component\Validator\Constraints\Valid;
|
||||||
use Symfony\Component\Validator\Exception\InvalidArgumentException;
|
|
||||||
use Symfony\Component\Validator\Group\GroupManagerInterface;
|
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||||
use Symfony\Component\Validator\ValidatorInterface as LegacyValidatorInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An execution context that is compatible with the legacy API (< 2.5).
|
* An execution context that is compatible with the legacy API (< 2.5).
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Component\Validator\Context;
|
namespace Symfony\Component\Validator\Context;
|
||||||
|
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
use Symfony\Component\Validator\Group\GroupManagerInterface;
|
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator;
|
namespace Symfony\Component\Validator;
|
||||||
|
|
||||||
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
use Symfony\Component\Validator\Exception\BadMethodCallException;
|
use Symfony\Component\Validator\Exception\BadMethodCallException;
|
||||||
use Symfony\Component\Validator\Exception\InvalidArgumentException;
|
use Symfony\Component\Validator\Exception\InvalidArgumentException;
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Simple translator implementation that simply replaces the parameters in
|
* Simple translator implementation that simply replaces the parameters in
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Mapping\Cache;
|
namespace Symfony\Component\Validator\Mapping\Cache;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
|
||||||
use Doctrine\Common\Cache\Cache;
|
use Doctrine\Common\Cache\Cache;
|
||||||
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adapts a Doctrine cache to a CacheInterface.
|
* Adapts a Doctrine cache to a CacheInterface.
|
||||||
|
@ -11,15 +11,15 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Mapping;
|
namespace Symfony\Component\Validator\Mapping;
|
||||||
|
|
||||||
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\Constraints\GroupSequence;
|
use Symfony\Component\Validator\Constraints\GroupSequence;
|
||||||
use Symfony\Component\Validator\Constraints\Traverse;
|
use Symfony\Component\Validator\Constraints\Traverse;
|
||||||
use Symfony\Component\Validator\Constraints\Valid;
|
use Symfony\Component\Validator\Constraints\Valid;
|
||||||
use Symfony\Component\Validator\ValidationVisitorInterface;
|
|
||||||
use Symfony\Component\Validator\PropertyMetadataContainerInterface;
|
|
||||||
use Symfony\Component\Validator\MetadataInterface as LegacyMetadataInterface;
|
|
||||||
use Symfony\Component\Validator\Constraint;
|
|
||||||
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
||||||
use Symfony\Component\Validator\Exception\GroupDefinitionException;
|
use Symfony\Component\Validator\Exception\GroupDefinitionException;
|
||||||
|
use Symfony\Component\Validator\MetadataInterface as LegacyMetadataInterface;
|
||||||
|
use Symfony\Component\Validator\PropertyMetadataContainerInterface;
|
||||||
|
use Symfony\Component\Validator\ValidationVisitorInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of {@link ClassMetadataInterface}.
|
* Default implementation of {@link ClassMetadataInterface}.
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Mapping;
|
namespace Symfony\Component\Validator\Mapping;
|
||||||
|
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
|
||||||
use Symfony\Component\Validator\Exception\NoSuchMetadataException;
|
use Symfony\Component\Validator\Exception\NoSuchMetadataException;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\LoaderInterface;
|
|
||||||
use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
|
use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
|
||||||
|
use Symfony\Component\Validator\Mapping\Loader\LoaderInterface;
|
||||||
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates new {@link ClassMetadataInterface} instances.
|
* Creates new {@link ClassMetadataInterface} instances.
|
||||||
|
@ -12,7 +12,9 @@
|
|||||||
namespace Symfony\Component\Validator\Mapping;
|
namespace Symfony\Component\Validator\Mapping;
|
||||||
|
|
||||||
use Symfony\Component\Validator\ClassBasedInterface;
|
use Symfony\Component\Validator\ClassBasedInterface;
|
||||||
use Symfony\Component\Validator\PropertyMetadataContainerInterface as LegacyPropertyMetadataContainerInterface;;
|
use Symfony\Component\Validator\PropertyMetadataContainerInterface as LegacyPropertyMetadataContainerInterface;
|
||||||
|
|
||||||
|
;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores all metadata needed for validating objects of specific class.
|
* Stores all metadata needed for validating objects of specific class.
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Mapping\Loader;
|
namespace Symfony\Component\Validator\Mapping\Loader;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Exception\MappingException;
|
|
||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
|
use Symfony\Component\Validator\Exception\MappingException;
|
||||||
|
|
||||||
abstract class AbstractLoader implements LoaderInterface
|
abstract class AbstractLoader implements LoaderInterface
|
||||||
{
|
{
|
||||||
|
@ -12,12 +12,12 @@
|
|||||||
namespace Symfony\Component\Validator\Mapping\Loader;
|
namespace Symfony\Component\Validator\Mapping\Loader;
|
||||||
|
|
||||||
use Doctrine\Common\Annotations\Reader;
|
use Doctrine\Common\Annotations\Reader;
|
||||||
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\Constraints\Callback;
|
use Symfony\Component\Validator\Constraints\Callback;
|
||||||
use Symfony\Component\Validator\Exception\MappingException;
|
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
|
||||||
use Symfony\Component\Validator\Constraints\GroupSequence;
|
use Symfony\Component\Validator\Constraints\GroupSequence;
|
||||||
use Symfony\Component\Validator\Constraints\GroupSequenceProvider;
|
use Symfony\Component\Validator\Constraints\GroupSequenceProvider;
|
||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Exception\MappingException;
|
||||||
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
|
|
||||||
class AnnotationLoader implements LoaderInterface
|
class AnnotationLoader implements LoaderInterface
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Mapping\Loader;
|
namespace Symfony\Component\Validator\Mapping\Loader;
|
||||||
|
|
||||||
|
use Symfony\Component\Config\Util\XmlUtils;
|
||||||
use Symfony\Component\Validator\Exception\MappingException;
|
use Symfony\Component\Validator\Exception\MappingException;
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
use Symfony\Component\Config\Util\XmlUtils;
|
|
||||||
|
|
||||||
class XmlFileLoader extends FileLoader
|
class XmlFileLoader extends FileLoader
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Mapping;
|
namespace Symfony\Component\Validator\Mapping;
|
||||||
|
|
||||||
use Symfony\Component\Validator\ValidationVisitorInterface;
|
|
||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
use Symfony\Component\Validator\Exception\ConstraintDefinitionException;
|
||||||
|
use Symfony\Component\Validator\ValidationVisitorInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stores all metadata needed for validating a class property.
|
* Stores all metadata needed for validating a class property.
|
||||||
|
@ -11,11 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Constraints;
|
namespace Symfony\Component\Validator\Tests\Constraints;
|
||||||
|
|
||||||
use Symfony\Component\Validator\ExecutionContext;
|
|
||||||
use Symfony\Component\Validator\Constraints\Range;
|
|
||||||
use Symfony\Component\Validator\Constraints\NotNull;
|
|
||||||
use Symfony\Component\Validator\Constraints\All;
|
use Symfony\Component\Validator\Constraints\All;
|
||||||
use Symfony\Component\Validator\Constraints\AllValidator;
|
use Symfony\Component\Validator\Constraints\AllValidator;
|
||||||
|
use Symfony\Component\Validator\Constraints\NotNull;
|
||||||
|
use Symfony\Component\Validator\Constraints\Range;
|
||||||
|
|
||||||
class AllValidatorTest extends \PHPUnit_Framework_TestCase
|
class AllValidatorTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
namespace Symfony\Component\Validator\Tests\Constraints;
|
namespace Symfony\Component\Validator\Tests\Constraints;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\ExecutionContext;
|
|
||||||
use Symfony\Component\Validator\Constraints\Callback;
|
use Symfony\Component\Validator\Constraints\Callback;
|
||||||
use Symfony\Component\Validator\Constraints\CallbackValidator;
|
use Symfony\Component\Validator\Constraints\CallbackValidator;
|
||||||
|
use Symfony\Component\Validator\ExecutionContext;
|
||||||
|
|
||||||
class CallbackValidatorTest_Class
|
class CallbackValidatorTest_Class
|
||||||
{
|
{
|
||||||
|
@ -12,9 +12,9 @@
|
|||||||
namespace Symfony\Component\Validator\Tests\Constraints;
|
namespace Symfony\Component\Validator\Tests\Constraints;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\Collection;
|
use Symfony\Component\Validator\Constraints\Collection;
|
||||||
use Symfony\Component\Validator\Constraints\Required;
|
|
||||||
use Symfony\Component\Validator\Constraints\Optional;
|
|
||||||
use Symfony\Component\Validator\Constraints\Email;
|
use Symfony\Component\Validator\Constraints\Email;
|
||||||
|
use Symfony\Component\Validator\Constraints\Optional;
|
||||||
|
use Symfony\Component\Validator\Constraints\Required;
|
||||||
use Symfony\Component\Validator\Constraints\Valid;
|
use Symfony\Component\Validator\Constraints\Valid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Constraints;
|
namespace Symfony\Component\Validator\Tests\Constraints;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\Range;
|
|
||||||
use Symfony\Component\Validator\Constraints\NotNull;
|
|
||||||
use Symfony\Component\Validator\Constraints\Required;
|
|
||||||
use Symfony\Component\Validator\Constraints\Optional;
|
|
||||||
use Symfony\Component\Validator\Constraints\Collection;
|
use Symfony\Component\Validator\Constraints\Collection;
|
||||||
use Symfony\Component\Validator\Constraints\CollectionValidator;
|
use Symfony\Component\Validator\Constraints\CollectionValidator;
|
||||||
|
use Symfony\Component\Validator\Constraints\NotNull;
|
||||||
|
use Symfony\Component\Validator\Constraints\Optional;
|
||||||
|
use Symfony\Component\Validator\Constraints\Range;
|
||||||
|
use Symfony\Component\Validator\Constraints\Required;
|
||||||
|
|
||||||
abstract class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
|
abstract class CollectionValidatorTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Constraints;
|
namespace Symfony\Component\Validator\Tests\Constraints;
|
||||||
|
|
||||||
|
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
||||||
use Symfony\Component\Validator\Constraints\File;
|
use Symfony\Component\Validator\Constraints\File;
|
||||||
use Symfony\Component\Validator\Constraints\FileValidator;
|
use Symfony\Component\Validator\Constraints\FileValidator;
|
||||||
use Symfony\Component\HttpFoundation\File\UploadedFile;
|
|
||||||
|
|
||||||
abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase
|
abstract class FileValidatorTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -11,13 +11,13 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests;
|
namespace Symfony\Component\Validator\Tests;
|
||||||
|
|
||||||
|
use Symfony\Component\Validator\Constraints\Collection;
|
||||||
|
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
||||||
use Symfony\Component\Validator\ConstraintViolation;
|
use Symfony\Component\Validator\ConstraintViolation;
|
||||||
use Symfony\Component\Validator\ConstraintViolationList;
|
use Symfony\Component\Validator\ConstraintViolationList;
|
||||||
use Symfony\Component\Validator\ExecutionContext;
|
use Symfony\Component\Validator\ExecutionContext;
|
||||||
use Symfony\Component\Validator\Constraints\Collection;
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
||||||
use Symfony\Component\Validator\ValidationVisitor;
|
use Symfony\Component\Validator\ValidationVisitor;
|
||||||
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
|
||||||
|
|
||||||
class ExecutionContextTest extends \PHPUnit_Framework_TestCase
|
class ExecutionContextTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
namespace Symfony\Component\Validator\Tests\Fixtures;
|
namespace Symfony\Component\Validator\Tests\Fixtures;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Exception\NoSuchMetadataException;
|
use Symfony\Component\Validator\Exception\NoSuchMetadataException;
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\MetadataInterface;
|
use Symfony\Component\Validator\MetadataInterface;
|
||||||
|
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Mapping\Cache;
|
namespace Symfony\Component\Validator\Tests\Mapping\Cache;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Mapping\Cache\DoctrineCache;
|
|
||||||
use Doctrine\Common\Cache\ArrayCache;
|
use Doctrine\Common\Cache\ArrayCache;
|
||||||
|
use Symfony\Component\Validator\Mapping\Cache\DoctrineCache;
|
||||||
|
|
||||||
class DoctrineCacheTest extends \PHPUnit_Framework_TestCase
|
class DoctrineCacheTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -11,11 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Mapping;
|
namespace Symfony\Component\Validator\Tests\Mapping;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\Entity;
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
|
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
|
use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\LoaderInterface;
|
use Symfony\Component\Validator\Mapping\Loader\LoaderInterface;
|
||||||
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
||||||
|
|
||||||
class ClassMetadataFactoryTest extends \PHPUnit_Framework_TestCase
|
class ClassMetadataFactoryTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -14,8 +14,6 @@ namespace Symfony\Component\Validator\Tests\Mapping;
|
|||||||
use Symfony\Component\Validator\Constraint;
|
use Symfony\Component\Validator\Constraint;
|
||||||
use Symfony\Component\Validator\Constraints\Valid;
|
use Symfony\Component\Validator\Constraints\Valid;
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
use Symfony\Component\Validator\Exception\GroupDefinitionException;
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\Entity;
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\PropertyConstraint;
|
use Symfony\Component\Validator\Tests\Fixtures\PropertyConstraint;
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Mapping;
|
namespace Symfony\Component\Validator\Tests\Mapping;
|
||||||
|
|
||||||
|
use Symfony\Component\Validator\Mapping\ElementMetadata;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
|
||||||
use Symfony\Component\Validator\Mapping\ElementMetadata;
|
|
||||||
|
|
||||||
class ElementMetadataTest extends \PHPUnit_Framework_TestCase
|
class ElementMetadataTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -14,10 +14,10 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader;
|
|||||||
use Doctrine\Common\Annotations\AnnotationReader;
|
use Doctrine\Common\Annotations\AnnotationReader;
|
||||||
use Symfony\Component\Validator\Constraints\All;
|
use Symfony\Component\Validator\Constraints\All;
|
||||||
use Symfony\Component\Validator\Constraints\Callback;
|
use Symfony\Component\Validator\Constraints\Callback;
|
||||||
|
use Symfony\Component\Validator\Constraints\Choice;
|
||||||
use Symfony\Component\Validator\Constraints\Collection;
|
use Symfony\Component\Validator\Constraints\Collection;
|
||||||
use Symfony\Component\Validator\Constraints\NotNull;
|
use Symfony\Component\Validator\Constraints\NotNull;
|
||||||
use Symfony\Component\Validator\Constraints\Range;
|
use Symfony\Component\Validator\Constraints\Range;
|
||||||
use Symfony\Component\Validator\Constraints\Choice;
|
|
||||||
use Symfony\Component\Validator\Constraints\True;
|
use Symfony\Component\Validator\Constraints\True;
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
|
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Mapping\Loader;
|
namespace Symfony\Component\Validator\Tests\Mapping\Loader;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Mapping\Loader\LoaderInterface;
|
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
|
use Symfony\Component\Validator\Mapping\Loader\LoaderInterface;
|
||||||
|
|
||||||
class FilesLoaderTest extends \PHPUnit_Framework_TestCase
|
class FilesLoaderTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -13,10 +13,10 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader;
|
|||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\All;
|
use Symfony\Component\Validator\Constraints\All;
|
||||||
use Symfony\Component\Validator\Constraints\Callback;
|
use Symfony\Component\Validator\Constraints\Callback;
|
||||||
|
use Symfony\Component\Validator\Constraints\Choice;
|
||||||
use Symfony\Component\Validator\Constraints\Collection;
|
use Symfony\Component\Validator\Constraints\Collection;
|
||||||
use Symfony\Component\Validator\Constraints\NotNull;
|
use Symfony\Component\Validator\Constraints\NotNull;
|
||||||
use Symfony\Component\Validator\Constraints\Range;
|
use Symfony\Component\Validator\Constraints\Range;
|
||||||
use Symfony\Component\Validator\Constraints\Choice;
|
|
||||||
use Symfony\Component\Validator\Constraints\Regex;
|
use Symfony\Component\Validator\Constraints\Regex;
|
||||||
use Symfony\Component\Validator\Constraints\True;
|
use Symfony\Component\Validator\Constraints\True;
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
|
@ -13,10 +13,10 @@ namespace Symfony\Component\Validator\Tests\Mapping\Loader;
|
|||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\All;
|
use Symfony\Component\Validator\Constraints\All;
|
||||||
use Symfony\Component\Validator\Constraints\Callback;
|
use Symfony\Component\Validator\Constraints\Callback;
|
||||||
|
use Symfony\Component\Validator\Constraints\Choice;
|
||||||
use Symfony\Component\Validator\Constraints\Collection;
|
use Symfony\Component\Validator\Constraints\Collection;
|
||||||
use Symfony\Component\Validator\Constraints\NotNull;
|
use Symfony\Component\Validator\Constraints\NotNull;
|
||||||
use Symfony\Component\Validator\Constraints\Range;
|
use Symfony\Component\Validator\Constraints\Range;
|
||||||
use Symfony\Component\Validator\Constraints\Choice;
|
|
||||||
use Symfony\Component\Validator\Constraints\True;
|
use Symfony\Component\Validator\Constraints\True;
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\YamlFileLoader;
|
use Symfony\Component\Validator\Mapping\Loader\YamlFileLoader;
|
||||||
|
@ -11,11 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Mapping;
|
namespace Symfony\Component\Validator\Tests\Mapping;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\ClassConstraint;
|
|
||||||
use Symfony\Component\Validator\Constraints\Valid;
|
use Symfony\Component\Validator\Constraints\Valid;
|
||||||
use Symfony\Component\Validator\Mapping\MemberMetadata;
|
use Symfony\Component\Validator\Mapping\MemberMetadata;
|
||||||
|
use Symfony\Component\Validator\Tests\Fixtures\ClassConstraint;
|
||||||
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintA;
|
||||||
|
use Symfony\Component\Validator\Tests\Fixtures\ConstraintB;
|
||||||
|
|
||||||
class MemberMetadataTest extends \PHPUnit_Framework_TestCase
|
class MemberMetadataTest extends \PHPUnit_Framework_TestCase
|
||||||
{
|
{
|
||||||
|
@ -13,14 +13,14 @@ namespace Symfony\Component\Validator\Tests\Validator;
|
|||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\Callback;
|
use Symfony\Component\Validator\Constraints\Callback;
|
||||||
use Symfony\Component\Validator\Constraints\GroupSequence;
|
use Symfony\Component\Validator\Constraints\GroupSequence;
|
||||||
|
use Symfony\Component\Validator\Constraints\Valid;
|
||||||
use Symfony\Component\Validator\ConstraintViolationInterface;
|
use Symfony\Component\Validator\ConstraintViolationInterface;
|
||||||
use Symfony\Component\Validator\ExecutionContextInterface;
|
use Symfony\Component\Validator\ExecutionContextInterface;
|
||||||
|
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
||||||
|
use Symfony\Component\Validator\Tests\Fixtures\Entity;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\FakeMetadataFactory;
|
use Symfony\Component\Validator\Tests\Fixtures\FakeMetadataFactory;
|
||||||
use Symfony\Component\Validator\Constraints\Valid;
|
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\GroupSequenceProviderEntity;
|
use Symfony\Component\Validator\Tests\Fixtures\GroupSequenceProviderEntity;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\Reference;
|
use Symfony\Component\Validator\Tests\Fixtures\Reference;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\Entity;
|
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadata;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 2.5
|
* @since 2.5
|
||||||
|
@ -11,14 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Validator;
|
namespace Symfony\Component\Validator\Tests\Validator;
|
||||||
|
|
||||||
use Symfony\Component\Validator\DefaultTranslator;
|
|
||||||
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
||||||
use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;
|
use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;
|
||||||
|
use Symfony\Component\Validator\DefaultTranslator;
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\NodeVisitor\ContextUpdateVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeVisitor\DefaultGroupReplacingVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeVisitor\NodeValidationVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeTraverser\NonRecursiveNodeTraverser;
|
|
||||||
use Symfony\Component\Validator\Validator\LegacyValidator;
|
use Symfony\Component\Validator\Validator\LegacyValidator;
|
||||||
|
|
||||||
class LegacyValidator2Dot5ApiTest extends Abstract2Dot5ApiTest
|
class LegacyValidator2Dot5ApiTest extends Abstract2Dot5ApiTest
|
||||||
|
@ -11,14 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Validator;
|
namespace Symfony\Component\Validator\Tests\Validator;
|
||||||
|
|
||||||
use Symfony\Component\Validator\DefaultTranslator;
|
|
||||||
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
||||||
use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;
|
use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;
|
||||||
|
use Symfony\Component\Validator\DefaultTranslator;
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\NodeVisitor\ContextUpdateVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeVisitor\DefaultGroupReplacingVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeVisitor\NodeValidationVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeTraverser\NonRecursiveNodeTraverser;
|
|
||||||
use Symfony\Component\Validator\Validator\LegacyValidator;
|
use Symfony\Component\Validator\Validator\LegacyValidator;
|
||||||
|
|
||||||
class LegacyValidatorLegacyApiTest extends AbstractLegacyApiTest
|
class LegacyValidatorLegacyApiTest extends AbstractLegacyApiTest
|
||||||
|
@ -11,16 +11,11 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Validator;
|
namespace Symfony\Component\Validator\Tests\Validator;
|
||||||
|
|
||||||
use Symfony\Component\Validator\DefaultTranslator;
|
|
||||||
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextFactory;
|
use Symfony\Component\Validator\Context\ExecutionContextFactory;
|
||||||
|
use Symfony\Component\Validator\DefaultTranslator;
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\NodeVisitor\ContextUpdateVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeVisitor\DefaultGroupReplacingVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeVisitor\NodeValidationVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeTraverser\NonRecursiveNodeTraverser;
|
|
||||||
use Symfony\Component\Validator\Validator\RecursiveValidator;
|
use Symfony\Component\Validator\Validator\RecursiveValidator;
|
||||||
use Symfony\Component\Validator\Validator\TraversingValidator;
|
|
||||||
|
|
||||||
class RecursiveValidator2Dot5ApiTest extends Abstract2Dot5ApiTest
|
class RecursiveValidator2Dot5ApiTest extends Abstract2Dot5ApiTest
|
||||||
{
|
{
|
||||||
|
@ -11,14 +11,12 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator\Tests\Validator;
|
namespace Symfony\Component\Validator\Tests\Validator;
|
||||||
|
|
||||||
use Symfony\Component\Validator\DefaultTranslator;
|
|
||||||
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextFactory;
|
use Symfony\Component\Validator\Context\ExecutionContextFactory;
|
||||||
|
use Symfony\Component\Validator\DefaultTranslator;
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\NodeVisitor\ContextUpdateVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeVisitor\DefaultGroupReplacingVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeVisitor\NodeValidationVisitor;
|
|
||||||
use Symfony\Component\Validator\NodeTraverser\NonRecursiveNodeTraverser;
|
use Symfony\Component\Validator\NodeTraverser\NonRecursiveNodeTraverser;
|
||||||
|
use Symfony\Component\Validator\NodeVisitor\NodeValidationVisitor;
|
||||||
use Symfony\Component\Validator\Validator\TraversingValidator;
|
use Symfony\Component\Validator\Validator\TraversingValidator;
|
||||||
|
|
||||||
class TraversingValidator2Dot5ApiTest extends Abstract2Dot5ApiTest
|
class TraversingValidator2Dot5ApiTest extends Abstract2Dot5ApiTest
|
||||||
|
@ -12,12 +12,12 @@
|
|||||||
namespace Symfony\Component\Validator\Tests;
|
namespace Symfony\Component\Validator\Tests;
|
||||||
|
|
||||||
use Symfony\Component\Validator\Constraints\Valid;
|
use Symfony\Component\Validator\Constraints\Valid;
|
||||||
|
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
||||||
|
use Symfony\Component\Validator\DefaultTranslator;
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
use Symfony\Component\Validator\Tests\Fixtures\Entity;
|
use Symfony\Component\Validator\Tests\Fixtures\Entity;
|
||||||
use Symfony\Component\Validator\Tests\Validator\AbstractLegacyApiTest;
|
use Symfony\Component\Validator\Tests\Validator\AbstractLegacyApiTest;
|
||||||
use Symfony\Component\Validator\Validator as LegacyValidator;
|
use Symfony\Component\Validator\Validator as LegacyValidator;
|
||||||
use Symfony\Component\Validator\DefaultTranslator;
|
|
||||||
use Symfony\Component\Validator\ConstraintValidatorFactory;
|
|
||||||
|
|
||||||
class ValidatorTest extends AbstractLegacyApiTest
|
class ValidatorTest extends AbstractLegacyApiTest
|
||||||
{
|
{
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator;
|
namespace Symfony\Component\Validator;
|
||||||
|
|
||||||
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
use Symfony\Component\Validator\Exception\NoSuchMetadataException;
|
use Symfony\Component\Validator\Exception\NoSuchMetadataException;
|
||||||
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
use Symfony\Component\Validator\Exception\UnexpectedTypeException;
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of {@link ValidationVisitorInterface} and
|
* Default implementation of {@link ValidationVisitorInterface} and
|
||||||
|
@ -11,9 +11,9 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator;
|
namespace Symfony\Component\Validator;
|
||||||
|
|
||||||
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
use Symfony\Component\Validator\Constraints\Valid;
|
use Symfony\Component\Validator\Constraints\Valid;
|
||||||
use Symfony\Component\Validator\Exception\ValidatorException;
|
use Symfony\Component\Validator\Exception\ValidatorException;
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of {@link ValidatorInterface}.
|
* Default implementation of {@link ValidatorInterface}.
|
||||||
|
@ -13,8 +13,8 @@ namespace Symfony\Component\Validator\Validator;
|
|||||||
|
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextFactoryInterface;
|
use Symfony\Component\Validator\Context\ExecutionContextFactoryInterface;
|
||||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||||
use Symfony\Component\Validator\NodeTraverser\NodeTraverserInterface;
|
|
||||||
use Symfony\Component\Validator\MetadataFactoryInterface;
|
use Symfony\Component\Validator\MetadataFactoryInterface;
|
||||||
|
use Symfony\Component\Validator\NodeTraverser\NodeTraverserInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default implementation of {@link ValidatorInterface}.
|
* Default implementation of {@link ValidatorInterface}.
|
||||||
|
@ -11,32 +11,32 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator;
|
namespace Symfony\Component\Validator;
|
||||||
|
|
||||||
|
use Doctrine\Common\Annotations\AnnotationReader;
|
||||||
use Doctrine\Common\Annotations\AnnotationRegistry;
|
use Doctrine\Common\Annotations\AnnotationRegistry;
|
||||||
|
use Doctrine\Common\Annotations\CachedReader;
|
||||||
|
use Doctrine\Common\Annotations\Reader;
|
||||||
|
use Doctrine\Common\Cache\ArrayCache;
|
||||||
use Symfony\Component\PropertyAccess\PropertyAccess;
|
use Symfony\Component\PropertyAccess\PropertyAccess;
|
||||||
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
||||||
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;
|
use Symfony\Component\Validator\Context\LegacyExecutionContextFactory;
|
||||||
use Symfony\Component\Validator\Exception\InvalidArgumentException;
|
use Symfony\Component\Validator\Exception\InvalidArgumentException;
|
||||||
use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
|
|
||||||
use Symfony\Component\Validator\Exception\ValidatorException;
|
use Symfony\Component\Validator\Exception\ValidatorException;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\LoaderChain;
|
|
||||||
use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
|
use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\StaticMethodLoader;
|
use Symfony\Component\Validator\Mapping\ClassMetadataFactory;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\YamlFileLoader;
|
|
||||||
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
|
use Symfony\Component\Validator\Mapping\Loader\AnnotationLoader;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\YamlFilesLoader;
|
use Symfony\Component\Validator\Mapping\Loader\LoaderChain;
|
||||||
|
use Symfony\Component\Validator\Mapping\Loader\StaticMethodLoader;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\XmlFileLoader;
|
use Symfony\Component\Validator\Mapping\Loader\XmlFileLoader;
|
||||||
use Symfony\Component\Validator\Mapping\Loader\XmlFilesLoader;
|
use Symfony\Component\Validator\Mapping\Loader\XmlFilesLoader;
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
use Symfony\Component\Validator\Mapping\Loader\YamlFileLoader;
|
||||||
use Doctrine\Common\Annotations\Reader;
|
use Symfony\Component\Validator\Mapping\Loader\YamlFilesLoader;
|
||||||
use Doctrine\Common\Annotations\AnnotationReader;
|
|
||||||
use Doctrine\Common\Annotations\CachedReader;
|
|
||||||
use Doctrine\Common\Cache\ArrayCache;
|
|
||||||
use Symfony\Component\Validator\NodeTraverser\NonRecursiveNodeTraverser;
|
use Symfony\Component\Validator\NodeTraverser\NonRecursiveNodeTraverser;
|
||||||
use Symfony\Component\Validator\NodeVisitor\NodeValidationVisitor;
|
use Symfony\Component\Validator\NodeVisitor\NodeValidationVisitor;
|
||||||
use Symfony\Component\Validator\NodeVisitor\ObjectInitializationVisitor;
|
use Symfony\Component\Validator\NodeVisitor\ObjectInitializationVisitor;
|
||||||
use Symfony\Component\Validator\Validator as ValidatorV24;
|
|
||||||
use Symfony\Component\Validator\Validator\TraversingValidator;
|
|
||||||
use Symfony\Component\Validator\Validator\LegacyValidator;
|
use Symfony\Component\Validator\Validator\LegacyValidator;
|
||||||
|
use Symfony\Component\Validator\Validator\TraversingValidator;
|
||||||
|
use Symfony\Component\Validator\Validator as ValidatorV24;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default implementation of {@link ValidatorBuilderInterface}.
|
* The default implementation of {@link ValidatorBuilderInterface}.
|
||||||
@ -378,6 +378,7 @@ class ValidatorBuilder implements ValidatorBuilderInterface
|
|||||||
|
|
||||||
if (is_file($file)) {
|
if (is_file($file)) {
|
||||||
require_once $file;
|
require_once $file;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,10 +11,10 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Validator;
|
namespace Symfony\Component\Validator;
|
||||||
|
|
||||||
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
|
||||||
use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
|
|
||||||
use Symfony\Component\Translation\TranslatorInterface;
|
|
||||||
use Doctrine\Common\Annotations\Reader;
|
use Doctrine\Common\Annotations\Reader;
|
||||||
|
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
|
||||||
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
|
use Symfony\Component\Validator\Mapping\Cache\CacheInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A configurable builder for ValidatorInterface objects.
|
* A configurable builder for ValidatorInterface objects.
|
||||||
|
Reference in New Issue
Block a user