Skip to content

Commit b761fa8

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [Serializer] Add support for "can" prefixin attribute loader
2 parents 04de4c5 + 8263a8e commit b761fa8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

serializer.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,10 +1464,14 @@ normalizers (in order of priority):
14641464
to read and write in the object. This allows it to access properties
14651465
directly or using getters, setters, hassers, issers, canners, adders and
14661466
removers. Names are generated by removing the ``get``, ``set``,
1467-
``has``, ``is``, ``add`` or ``remove`` prefix from the method name and
1467+
``has``, ``is``, ``can``, ``add`` or ``remove`` prefix from the method name and
14681468
transforming the first letter to lowercase (e.g. ``getFirstName()`` ->
14691469
``firstName``).
14701470

1471+
.. versionadded:: 7.4
1472+
1473+
Support for the ``can`` prefix was introduced in Symfony 7.4.
1474+
14711475
During denormalization, it supports using the constructor as well as
14721476
the discovered methods.
14731477

0 commit comments

Comments
 (0)