From 1f422cf110ca730b8a89613a4851e2e3809785df Mon Sep 17 00:00:00 2001 From: Mathias Geat Date: Mon, 5 Feb 2018 15:18:40 +0100 Subject: [PATCH] Fix references to annotation loader tip Tips were refactored to an include file in 0ddf3d21b12c05fb5b34f982feb4005dab877185 but referenced the wrong filename. a0b19c3e372d75b48e2f3606d8c4109788e9e39a removed the wrong tip from the serializer page. This fixes the tip references on routing/validator and restores the tip on the serializer, but with the right reference. --- components/routing.rst | 2 +- components/serializer.rst | 2 ++ components/validator/resources.rst | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/routing.rst b/components/routing.rst index 36618ec99a0..64d4da52dc5 100644 --- a/components/routing.rst +++ b/components/routing.rst @@ -312,7 +312,7 @@ Last but not least there are route definitions from class annotations. The specific details are left out here. -.. include:: /_includes/_rewrite_rule_tip.rst.inc +.. include:: /_includes/_annotation_loader_tip.rst.inc The all-in-one Router ~~~~~~~~~~~~~~~~~~~~~ diff --git a/components/serializer.rst b/components/serializer.rst index 84e5cb83e2b..72e7fb9dc28 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -310,6 +310,8 @@ You are now able to serialize only attributes in the groups you want:: ); // $obj2 = MyObj(foo: 'foo', bar: 'bar') +.. include:: /_includes/_annotation_loader_tip.rst.inc + .. _ignoring-attributes-when-serializing: Ignoring Attributes diff --git a/components/validator/resources.rst b/components/validator/resources.rst index f013f847467..c32e35c7b17 100644 --- a/components/validator/resources.rst +++ b/components/validator/resources.rst @@ -119,7 +119,7 @@ method. It takes an optional annotation reader instance, which defaults to To disable the annotation loader after it was enabled, call :method:`Symfony\\Component\\Validator\\ValidatorBuilder::disableAnnotationMapping`. -.. include:: /_includes/_rewrite_rule_tip.rst.inc +.. include:: /_includes/_annotation_loader_tip.rst.inc Using Multiple Loaders ----------------------