Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Oct 30, 2024
1 parent 90587ae commit 1c3c18f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions object-mapper.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Run this command to install the ``object-mapper`` before using it:
Using the ObjectMapper Service
------------------------------

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

// src/Controller/DefaultController.php
Expand Down Expand Up @@ -96,7 +96,7 @@ conditionally map properties::
Transform mapped values
-----------------------

Use ``transform`` to call a function or a
Use ``transform`` to call a static function or a
:class:`Symfony\\Component\\ObjectMapper\\CallableInterface`::

Check failure on line 100 in object-mapper.rst

View workflow job for this annotation

GitHub Actions / Lint (DOCtor-RST)

Please reorder the use statements alphabetically

// src/ObjectMapper/TransformNameCallable.php
Expand Down Expand Up @@ -131,7 +131,7 @@ Use ``transform`` to call a function or a
}


The ``if`` and ``transform`` parameters also accept callbacks::
The ``if`` and ``transform`` parameters also accept static callbacks::

// src/Dto/Source.php
namespace App\Dto;
Expand Down Expand Up @@ -172,22 +172,22 @@ classes and it can be repeated::
Provide your own mapping metadata
---------------------------------

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

Check failure on line 177 in object-mapper.rst

View workflow job for this annotation

GitHub Actions / Lint (DOCtor-RST)

Please reorder the use statements alphabetically

// src/ObjectMapper/Metadata/MapStructMapperMetadataFactory.php
namespace App\Metadata\ObjectMapper;

use Symfony\Component\ObjectMapper\Attribute\Map;

Check failure on line 182 in object-mapper.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[Missing class] Class, interface or trait with name "Symfony\Component\ObjectMapper\Attribute\Map" does not exist
use Symfony\Component\ObjectMapper\Metadata\MapperMetadataFactoryInterface;
use Symfony\Component\ObjectMapper\Metadata\ObjectMapperMetadataFactoryInterface;

Check failure on line 183 in object-mapper.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[Missing class] Class, interface or trait with name "Symfony\Component\ObjectMapper\Metadata\ObjectMapperMetadataFactoryInterface" does not exist
use Symfony\Component\ObjectMapper\Metadata\Mapping;

Check failure on line 184 in object-mapper.rst

View workflow job for this annotation

GitHub Actions / Code Blocks

[Missing class] Class, interface or trait with name "Symfony\Component\ObjectMapper\Metadata\Mapping" does not exist
use Symfony\Component\ObjectMapper\ObjectMapperInterface;

/**
* A Metadata factory that implements the basics behind https://mapstruct.org/.
*/
final class MapStructMapperMetadataFactory implements MapperMetadataFactoryInterface
final class MapStructMapperMetadataFactory implements ObjectMapperMetadataFactoryInterface
{
public function __construct(private readonly string $mapper)
{
Expand Down

0 comments on commit 1c3c18f

Please sign in to comment.