Skip to content

Commit 845f98a

Browse files
committed
minor #8262 Move group_service_resolver.rst to form folder (afurculita, javiereguiluz)
This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #8262). Discussion ---------- Move group_service_resolver.rst to form folder The `validation\group_service_resolver.rst` file is related more the Form component than to the Validator component. This can't be part of the documentation for the Validator component because it is about an implementation detail from the Form component. Commits ------- 55bce77 Added a missing redirection b5d113d Update validation_group_service_resolver.rst a089159 Update redirection_map c4fc122 Update button_based_validation.rst b33a9ac Delete group_service_resolver.rst 0559274 Create validation_group_service_resolver.rst
2 parents b131a68 + 55bce77 commit 845f98a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

_build/redirection_map

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@
255255
/cookbook/upgrade/minor_version /setup/upgrade_major
256256
/cookbook/upgrade/patch_version /upgrade/bundles
257257
/cookbook/validation/custom_constraint /validation/custom_constraint
258-
/cookbook/validation/group_service_resolver /validation/group_service_resolver
258+
/cookbook/validation/group_service_resolver /form/validation_group_service_resolver
259259
/cookbook/validation/index /validation
260260
/cookbook/validation/severity /validation/severity
261261
/cookbook/web_server/built_in /setup/built_in_web_server
@@ -326,3 +326,4 @@
326326
/install/bundles /setup/bundles
327327
/form /forms
328328
/testing/simulating_authentication /testing/http_authentication
329+
/validation/group_service_resolver /form/validation_group_service_resolver

form/button_based_validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ large or whether you tried to submit text in a number field.
3939
.. seealso::
4040

4141
To see how to use a service to resolve ``validation_groups`` dynamically
42-
read the :doc:`/validation/group_service_resolver` article.
42+
read the :doc:`/form/validation_group_service_resolver` article.

validation/group_service_resolver.rst renamed to form/validation_group_service_resolver.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
How to Dynamically Configure Validation Groups
2-
==============================================
1+
How to Dynamically Configure Form Validation Groups
2+
===================================================
33

44
Sometimes you need advanced logic to determine the validation groups. If they
55
can't be determined by a simple callback, you can use a service. Create a
@@ -47,7 +47,7 @@ Then in your form, inject the resolver and set it as the ``validation_groups``.
4747
namespace AppBundle\Form;
4848
4949
use AppBundle\Validator\ValidationGroupResolver;
50-
use Symfony\Component\Form\AbstractType;
50+
use Symfony\Component\Form\AbstractType
5151
use Symfony\Component\OptionsResolver\OptionsResolver;
5252
5353
class MyClassType extends AbstractType

0 commit comments

Comments
 (0)