[Validator] Moved visitors to NodeVisitor namespace

This commit is contained in:
Bernhard Schussek 2014-02-17 15:03:04 +01:00
parent a40189ccb7
commit 7e3a41d9db
8 changed files with 16 additions and 10 deletions

View File

@ -13,7 +13,7 @@ namespace Symfony\Component\Validator\Context;
use Symfony\Component\Validator\Group\GroupManagerInterface;
use Symfony\Component\Validator\Node\Node;
use Symfony\Component\Validator\NodeTraverser\AbstractVisitor;
use Symfony\Component\Validator\NodeVisitor\AbstractVisitor;
use Symfony\Component\Validator\Validator\ValidatorInterface;
/**

View File

@ -16,6 +16,7 @@ use Symfony\Component\Validator\MetadataFactoryInterface;
use Symfony\Component\Validator\Node\ClassNode;
use Symfony\Component\Validator\Node\Node;
use Symfony\Component\Validator\Node\PropertyNode;
use Symfony\Component\Validator\NodeVisitor\NodeVisitorInterface;
/**
* @since %%NextVersion%%

View File

@ -12,6 +12,7 @@
namespace Symfony\Component\Validator\NodeTraverser;
use Symfony\Component\Validator\Node\Node;
use Symfony\Component\Validator\NodeVisitor\NodeVisitorInterface;
/**
* @since %%NextVersion%%

View File

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator\NodeTraverser;
namespace Symfony\Component\Validator\NodeVisitor;
use Symfony\Component\Validator\Node\Node;

View File

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator\Validator;
namespace Symfony\Component\Validator\NodeVisitor;
use Symfony\Component\Validator\Constraints\GroupSequence;
use Symfony\Component\Validator\ConstraintValidatorFactoryInterface;
@ -17,7 +17,6 @@ use Symfony\Component\Validator\Context\ExecutionContextManagerInterface;
use Symfony\Component\Validator\Group\GroupManagerInterface;
use Symfony\Component\Validator\Node\ClassNode;
use Symfony\Component\Validator\Node\Node;
use Symfony\Component\Validator\NodeTraverser\AbstractVisitor;
use Symfony\Component\Validator\NodeTraverser\NodeTraverserInterface;
/**

View File

@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/
namespace Symfony\Component\Validator\NodeTraverser;
namespace Symfony\Component\Validator\NodeVisitor;
use Symfony\Component\Validator\Node\Node;

View File

@ -11,13 +11,13 @@
namespace Symfony\Component\Validator\Tests\Validator;
use Symfony\Component\Validator\Context\ExecutionContextManager;
use Symfony\Component\Validator\MetadataFactoryInterface;
use Symfony\Component\Validator\Tests\AbstractValidatorTest;
use Symfony\Component\Validator\NodeTraverser\NodeTraverser;
use Symfony\Component\Validator\DefaultTranslator;
use Symfony\Component\Validator\ConstraintValidatorFactory;
use Symfony\Component\Validator\Validator\NodeValidator;
use Symfony\Component\Validator\Context\ExecutionContextManager;
use Symfony\Component\Validator\MetadataFactoryInterface;
use Symfony\Component\Validator\NodeVisitor\NodeValidator;
use Symfony\Component\Validator\NodeTraverser\NodeTraverser;
use Symfony\Component\Validator\Tests\AbstractValidatorTest;
use Symfony\Component\Validator\Validator\Validator;
class TraversingValidatorTest extends AbstractValidatorTest

View File

@ -24,4 +24,9 @@ class LegacyValidator extends Validator implements LegacyValidatorInterface
// TODO what about $traverse and $deep?
return $this->validateObject($value, $groups);
}
public function getMetadataFactory()
{
return $this->metadataFactory;
}
}