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 ----------------------