From 4bc6745e80c680e6cef4cc291b125c7cfec0e01e Mon Sep 17 00:00:00 2001 From: Ahmed TAILOULOUTE Date: Sun, 28 Jun 2020 17:08:44 +0200 Subject: [PATCH 1/2] Update serializer.rst --- components/serializer.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/serializer.rst b/components/serializer.rst index c8c52f9031d..b8fe7a7b5f0 100644 --- a/components/serializer.rst +++ b/components/serializer.rst @@ -586,7 +586,7 @@ There are several types of normalizers available: calling the constructor during the denormalization process. Objects are normalized to a map of property names and values (names are - generated removing the ``get``, ``set``, ``has``, ``is``, ``add`` or ``remove`` prefix from + generated by removing the ``get``, ``set``, ``has``, ``is``, ``add`` or ``remove`` prefix from the method name and transforming the first letter to lowercase; e.g. ``getFirstName()`` -> ``firstName``). @@ -599,7 +599,7 @@ There are several types of normalizers available: the constructor and the "setters" (public methods starting with "set"). Objects are normalized to a map of property names and values (names are - generated removing the ``get`` prefix from the method name and transforming + generated by removing the ``get`` prefix from the method name and transforming the first letter to lowercase; e.g. ``getFirstName()`` -> ``firstName``). :class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer` From 6bfe7e3cf4587b9c47e8ac7c6d528848a4ec1f0f Mon Sep 17 00:00:00 2001 From: Zairig Imad Date: Sun, 28 Jun 2020 12:47:31 +0200 Subject: [PATCH 2/2] Update injection_types.rst missing annotation --- service_container/injection_types.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service_container/injection_types.rst b/service_container/injection_types.rst index 2a728de4879..77098c0b9fb 100644 --- a/service_container/injection_types.rst +++ b/service_container/injection_types.rst @@ -222,6 +222,9 @@ that accepts the dependency:: { private $mailer; + /** + * @required + */ public function setMailer(MailerInterface $mailer) { $this->mailer = $mailer;