From 815c769292647bd387d2e583523705acb72af026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20H=C3=B6rl?= Date: Thu, 2 Feb 2012 20:27:06 +0100 Subject: [PATCH] [Validator] Renamed getValidationGroups to getGroupSequence --- src/Symfony/Component/Validator/GraphWalker.php | 2 +- .../Component/Validator/GroupSequenceProviderInterface.php | 2 +- .../Validator/Fixtures/GroupSequenceProviderEntity.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/Validator/GraphWalker.php b/src/Symfony/Component/Validator/GraphWalker.php index f06d10b9fe..0f4b99e634 100644 --- a/src/Symfony/Component/Validator/GraphWalker.php +++ b/src/Symfony/Component/Validator/GraphWalker.php @@ -72,7 +72,7 @@ class GraphWalker if ($metadata->hasGroupSequence()) { $groups = $metadata->getGroupSequence(); } else { - $groups = $object->getValidationGroups(); + $groups = $object->getGroupSequence(); } foreach ($groups as $group) { diff --git a/src/Symfony/Component/Validator/GroupSequenceProviderInterface.php b/src/Symfony/Component/Validator/GroupSequenceProviderInterface.php index 0265691a6d..676a3b399f 100644 --- a/src/Symfony/Component/Validator/GroupSequenceProviderInterface.php +++ b/src/Symfony/Component/Validator/GroupSequenceProviderInterface.php @@ -22,5 +22,5 @@ interface GroupSequenceProviderInterface * * @return array An array of validation groups */ - function getValidationGroups(); + function getGroupSequence(); } diff --git a/tests/Symfony/Tests/Component/Validator/Fixtures/GroupSequenceProviderEntity.php b/tests/Symfony/Tests/Component/Validator/Fixtures/GroupSequenceProviderEntity.php index 9516c476d3..9b1afefd08 100644 --- a/tests/Symfony/Tests/Component/Validator/Fixtures/GroupSequenceProviderEntity.php +++ b/tests/Symfony/Tests/Component/Validator/Fixtures/GroupSequenceProviderEntity.php @@ -20,7 +20,7 @@ class GroupSequenceProviderEntity implements GroupSequenceProviderInterface $this->groups = $groups; } - public function getValidationGroups() + public function getGroupSequence() { return $this->groups; }