8000 [Validator] Moved visitors to NodeVisitor namespace · symfony/symfony@7e3a41d · GitHub
[go: up one dir, main page]

Skip to content

Commit 7e3a41d

Browse files
committed
[Validator] Moved visitors to NodeVisitor namespace
1 parent a40189c commit 7e3a41d

File tree

8 files changed

+15
-9
lines changed

8 files changed

+15
-9
lines changed

src/Symfony/Component/Validator/Context/ExecutionContextManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use Symfony\Component\Validator\Group\GroupManagerInterface;
1515
use Symfony\Component\Validator\Node\Node;
16-
use Symfony\Component\Validator\NodeTraverser\AbstractVisitor;
16+
use Symfony\Component\Validator\NodeVisitor\AbstractVisitor;
1717
use Symfony\Component\Validator\Validator\ValidatorInterface;
1818

1919
/**

src/Symfony/Component/Validator/NodeTraverser/NodeTraverser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Symfony\Component\Validator\Node\ClassNode;
1717
use Symfony\Component\Validator\Node\Node;
1818
use Symfony\Component\Validator\Node\PropertyNode;
19+
use Symfony\Component\Validator\NodeVisitor\NodeVisitorInterface;
1920

2021
/**
2122
* @since %%NextVersion%%

src/Symfony/Component/Validator/NodeTraverser/NodeTraverserInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Validator\NodeTraverser;
1313

1414
use Symfony\Component\Validator\Node\Node;
15+
use Symfony\Component\Validator\NodeVisitor\NodeVisitorInterface;
1516

1617
/**
1718
* @since %%NextVersion%%

src/Symfony/Component/Validator/NodeTraverser/AbstractVisitor.php renamed to src/Symfony/Component/Validator/NodeVisitor/AbstractVisitor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Validator\NodeTraverser;
12+
namespace Symfony\Component\Validator\NodeVisitor;
1313

1414
use Symfony\Component\Validator\Node\Node;
1515

src/Symfony/Component/Validator/Validator/NodeValidator.php renamed to src/Symfony/Component/Validator/NodeVisitor/NodeValidator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Validator\Validator;
12+
namespace Symfony\Component\Validator\NodeVisitor;
1313

1414
use Symfony\Component\Validator\Constraints\GroupSequence;
1515
use Symfony\Component\Validator\ConstraintValidatorFactoryInterface;
1616
use Symfony\Component\Validator\Context\ExecutionContextManagerInterface;
1717
use Symfony\Component\Validator\Group\GroupManagerInterface;
1818
use Symfony\Component\Validator\Node\ClassNode;
1919
use Symfony\Component\Validator\Node\Node;
20-
use Symfony\Component\Validator\NodeTraverser\AbstractVisitor;
2120
use Symfony\Component\Validator\NodeTraverser\NodeTraverserInterface;
2221

2322
/**

src/Symfony/Component/Validator/NodeTraverser/NodeVisitorInterface.php renamed to src/Symfony/Component/Validator/NodeVisitor/NodeVisitorInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Component\Validator\NodeTraverser;
12+
namespace Symfony\Component\Validator\NodeVisitor;
1313

1414
use Symfony\Component\Validator\Node\Node;
1515

src/Symfony/Component/Validator/Tests/Validator/TraversingValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
namespace Symfony\Component\Validator\Tests\Validator;
1313

14+
use Symfony\Component\Validator\DefaultTranslator;
15+
use Symfony\Component\Validator\ConstraintValidatorFactory;
1416
use Symfony\Component\Validator\Context\ExecutionContextManager;
1517
use Symfony\Component\Validator\MetadataFactoryInterface;
16-
use Symfony\Component\Validator\Tests\AbstractValidatorTest;
18+
use Symfony\Component\Validator\NodeVisitor\NodeValidator;
1719
use Symfony\Component\Validator\NodeTraverser\NodeTraverser;
18-
use Symfony\Component\Validator\DefaultTranslator;
19-
use Symfony\Component\Validator\ConstraintValidatorFactory;
20-
use Symfony\Component\Validator\Validator\NodeValidator;
20+
use Symfony\Component\Validator\Tests\AbstractValidatorTest;
2121
use Symfony\Component\Validator\Validator\Validator;
2222

2323
class TraversingValidatorTest extends AbstractValidatorTest

src/Symfony/Component/Validator/Validator/LegacyValidator.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,9 @@ public function validate($value, $groups = null, $traverse = false, $deep = fals
2424
// TODO what about $traverse and $deep?
2525
return $this->validateObject($value, $groups);
2626
}
27+
28+
public function getMetadataFactory()
29+
{
30+
return $this->metadataFactory;
31+
}
2732
}

0 commit comments

Comments
 (0)
0