Skip to content

Commit

Permalink
refactor: Rename MapperPass to RemoveOptionalDefinitionPass
Browse files Browse the repository at this point in the history
  • Loading branch information
priyadi committed Feb 3, 2024
1 parent 589f60f commit 90d8a79
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* refactor(`SubMapper`): Use a factory to create sub mappers.
* refactor(`ObjectCache`): Remove references to `Context`.
* refactor(`SubMapper`): Add `cache()` method.
* refactor: Rename `MapperPass` to `RemoveOptionalDefinitionPass`

## 0.5.26

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Uid\Factory\UuidFactory;

final class MapperPass implements CompilerPassInterface
final class RemoveOptionalDefinitionPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container)
{
Expand Down
4 changes: 2 additions & 2 deletions src/RekalogikaMapperBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace Rekalogika\Mapper;

use Rekalogika\Mapper\DependencyInjection\MapperPass;
use Rekalogika\Mapper\DependencyInjection\PropertyMapperPass;
use Rekalogika\Mapper\DependencyInjection\RemoveOptionalDefinitionPass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;

Expand All @@ -24,7 +24,7 @@ public function build(ContainerBuilder $container)
{
parent::build($container);

$container->addCompilerPass(new MapperPass());
$container->addCompilerPass(new RemoveOptionalDefinitionPass());
$container->addCompilerPass(new PropertyMapperPass());
}
}

0 comments on commit 90d8a79

Please sign in to comment.