Skip to content

Commit 1c3c18f

Browse files
committed
review
1 parent 90587ae commit 1c3c18f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

object-mapper.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Run this command to install the ``object-mapper`` before using it:
1717
Using the ObjectMapper Service
1818
------------------------------
1919

20-
Once enabled, the object mapper service can be injected in any service where
20+
Once installed, the object mapper service can be injected in any service where
2121
you need it or it can be used in a controller::
2222

2323
// src/Controller/DefaultController.php
@@ -96,7 +96,7 @@ conditionally map properties::
9696
Transform mapped values
9797
-----------------------
9898

99-
Use ``transform`` to call a function or a
99+
Use ``transform`` to call a static function or a
100100
:class:`Symfony\\Component\\ObjectMapper\\CallableInterface`::
101101

102102
// src/ObjectMapper/TransformNameCallable.php
@@ -131,7 +131,7 @@ Use ``transform`` to call a function or a
131131
}
132132

133133

134-
The ``if`` and ``transform`` parameters also accept callbacks::
134+
The ``if`` and ``transform`` parameters also accept static callbacks::
135135

136136
// src/Dto/Source.php
137137
namespace App\Dto;
@@ -172,22 +172,22 @@ classes and it can be repeated::
172172
Provide your own mapping metadata
173173
---------------------------------
174174

175-
The :class:`Symfony\\Component\\ObjectMapper\\MapperMetadataFactoryInterface` allows
175+
The :class:`Symfony\\Component\\ObjectMapper\\ObjectMapperMetadataFactoryInterface` allows
176176
to change how mapping metadata is computed. With this interface we can create a
177177
`MapStruct`_ version of the Object Mapper::
178178

179179
// src/ObjectMapper/Metadata/MapStructMapperMetadataFactory.php
180180
namespace App\Metadata\ObjectMapper;
181181

182182
use Symfony\Component\ObjectMapper\Attribute\Map;
183-
use Symfony\Component\ObjectMapper\Metadata\MapperMetadataFactoryInterface;
183+
use Symfony\Component\ObjectMapper\Metadata\ObjectMapperMetadataFactoryInterface;
184184
use Symfony\Component\ObjectMapper\Metadata\Mapping;
185185
use Symfony\Component\ObjectMapper\ObjectMapperInterface;
186186

187187
/**
188188
* A Metadata factory that implements the basics behind https://mapstruct.org/.
189189
*/
190-
final class MapStructMapperMetadataFactory implements MapperMetadataFactoryInterface
190+
final class MapStructMapperMetadataFactory implements ObjectMapperMetadataFactoryInterface
191191
{
192192
public function __construct(private readonly string $mapper)
193193
{

0 commit comments

Comments
 (0)