8000 Merge branch '4.4' into 5.0 · symfony/symfony-docs@b14da16 · GitHub
[go: up one dir, main page]

Skip to content

Commit b14da16

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: add ProblemNormalizer Update injection_types.rst Update associations.rst Update serializer.rst
2 parents bb10e94 + c735d06 commit b14da16

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

components/serializer.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ There are several types of normalizers available:
678678
calling the constructor during the denormalization process.
679679

680680
Objects are normalized to a map of property names and values (names are
681-
generated removing the ``get``, ``set``, ``has``, ``is``, ``add`` or ``remove`` prefix from
681+
generated by removing the ``get``, ``set``, ``has``, ``is``, ``add`` or ``remove`` prefix from
682682
the method name and transforming the first letter to lowercase; e.g.
683683
``getFirstName()`` -> ``firstName``).
684684

@@ -691,7 +691,7 @@ There are several types of normalizers available:
691691
the constructor and the "setters" (public methods starting with "set").
692692

693693
Objects are normalized to a map of property names and values (names are
694-
generated removing the ``get`` prefix from the method name and transforming
694+
generated by removing the ``get`` prefix from the method name and transforming
695695
the first letter to lowercase; e.g. ``getFirstName()`` -> ``firstName``).
696696

697697
:class:`Symfony\\Component\\Serializer\\Normalizer\\PropertyNormalizer`
@@ -736,6 +736,9 @@ There are several types of normalizers available:
736736
:class:`Symfony\\Component\\Validator\\ConstraintViolationListInterface`
737737
into a list of errors according to the `RFC 7807`_ standard.
738738

739+
:class:`Symfony\\Component\\Serializer\\Normalizer\\ProblemNormalizer`
740+
Normalizes errors according to the API Problem spec `RFC 7807`_.
741+
739742
.. _component-serializer-encoders:
740743

741744
Encoders

doctrine/associations.rst

Lines changed: 1 addition & 1 deletion
B03E
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Saving Related Entities
315315
Now you can see this new code in action! Imagine you're inside a controller::
316316

317317
// src/Controller/ProductController.php
318-
namespace App/Controller;
318+
namespace App\Controller;
319319

320320
// ...
321321
use App\Entity\Category;

service_container/injection_types.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ that accepts the dependency::
218218
{
219219
private $mailer;
220220

221+
/**
222+
* @required
223+
*/
221224
public function setMailer(MailerInterface $mailer)
222225
{
223226
$this->mailer = $mailer;

0 commit comments

Comments
 (0)
0