Skip to content

Commit b676df5

Browse files
committed
Merge branch '5.1'
* 5.1: add ProblemNormalizer Update injection_types.rst Update associations.rst Update serializer.rst
2 parents 79f0465 + 5f68035 commit b676df5

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
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
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;

messenger.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -911,9 +911,6 @@ a table named ``messenger_messages``.
911911
The ability to automatically generate a migration for the ``messenger_messages``
912912
table was introduced in Symfony 5.1 and DoctrineBundle 2.1.
913913

914-
Or, to create the table yourself, set the ``auto_setup`` option to ``false`` and
915-
:ref:`generate a migration <doctrine-creating-the-database-tables-schema>`.
916-
917914
The transport has a number of options:
918915

919916
.. configuration-block::

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)