@@ -17,7 +17,7 @@ Run this command to install the ``object-mapper`` before using it:
17
17
Using the ObjectMapper Service
18
18
------------------------------
19
19
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
21
21
you need it or it can be used in a controller::
22
22
23
23
// src/Controller/DefaultController.php
@@ -96,7 +96,7 @@ conditionally map properties::
96
96
Transform mapped values
97
97
-----------------------
98
98
99
- Use ``transform `` to call a function or a
99
+ Use ``transform `` to call a static function or a
100
100
:class: `Symfony\\ Component\\ ObjectMapper\\ CallableInterface `::
101
101
102
102
// src/ObjectMapper/TransformNameCallable.php
@@ -131,7 +131,7 @@ Use ``transform`` to call a function or a
131
131
}
132
132
133
133
134
- The ``if `` and ``transform `` parameters also accept callbacks::
134
+ The ``if `` and ``transform `` parameters also accept static callbacks::
135
135
136
136
// src/Dto/Source.php
137
137
namespace App\Dto;
@@ -172,22 +172,22 @@ classes and it can be repeated::
172
172
Provide your own mapping metadata
173
173
---------------------------------
174
174
175
- The :class: `Symfony\\ Component\\ ObjectMapper\\ MapperMetadataFactoryInterface ` allows
175
+ The :class: `Symfony\\ Component\\ ObjectMapper\\ ObjectMapperMetadataFactoryInterface ` allows
176
176
to change how mapping metadata is computed. With this interface we can create a
177
177
`MapStruct `_ version of the Object Mapper::
178
178
179
179
// src/ObjectMapper/Metadata/MapStructMapperMetadataFactory.php
180
180
namespace App\Metadata\ObjectMapper;
181
181
182
182
use Symfony\Component\ObjectMapper\Attribute\Map;
183
- use Symfony\Component\ObjectMapper\Metadata\MapperMetadataFactoryInterface ;
183
+ use Symfony\Component\ObjectMapper\Metadata\ObjectMapperMetadataFactoryInterface ;
184
184
use Symfony\Component\ObjectMapper\Metadata\Mapping;
185
185
use Symfony\Component\ObjectMapper\ObjectMapperInterface;
186
186
187
187
/**
188
188
* A Metadata factory that implements the basics behind https://mapstruct.org/.
189
189
*/
190
- final class MapStructMapperMetadataFactory implements MapperMetadataFactoryInterface
190
+ final class MapStructMapperMetadataFactory implements ObjectMapperMetadataFactoryInterface
191
191
{
192
192
public function __construct(private readonly string $mapper)
193
193
{
0 commit comments