From 89c6cb453c53b44cad917d501e3edb76851eadf8 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Sun, 14 Jan 2024 06:30:37 +0700 Subject: [PATCH] fix: Service definition for `TryPropertyCommand` --- CHANGELOG.md | 4 ++++ config/services.php | 10 ++++++++++ 2 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77853766..12a2ecc5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 0.5.9 + +* fix: Service definition for `TryPropertyCommand`. + ## 0.5.8 * fix: PropertyAccessor `UninitializedPropertyException` error now is regarded diff --git a/config/services.php b/config/services.php index 9b14a3b8..a7e845aa 100644 --- a/config/services.php +++ b/config/services.php @@ -13,6 +13,7 @@ use Rekalogika\Mapper\Command\MappingCommand; use Rekalogika\Mapper\Command\TryCommand; +use Rekalogika\Mapper\Command\TryPropertyCommand; use Rekalogika\Mapper\MainTransformer\MainTransformer; use Rekalogika\Mapper\Mapper; use Rekalogika\Mapper\MapperInterface; @@ -238,4 +239,13 @@ service('rekalogika.mapper.type_resolver'), ]) ->tag('console.command'); + + $services + ->set('rekalogika.mapper.command.try_property', TryPropertyCommand::class) + ->args([ + service('rekalogika.mapper.transformer_registry'), + service('rekalogika.mapper.type_resolver'), + service('rekalogika.mapper.property_info'), + ]) + ->tag('console.command'); };