Skip to content

Commit

Permalink
Merge pull request #131 from PowerKiKi/typed-field-mapper
Browse files Browse the repository at this point in the history
Add support for typed_field_mapper
  • Loading branch information
Slamdunk authored Jul 10, 2024
2 parents 875fac4 + 88516c9 commit fb86890
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions example/full-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
'custom_hydration_modes' => [],
'naming_strategy' => null,
'quote_strategy' => null,
'typed_field_mapper' => null,
'default_repository_class_name' => EntityRepository::class,
'repository_factory' => null,
'class_metadata_factory_name' => ClassMetadataFactory::class,
Expand Down
6 changes: 6 additions & 0 deletions src/ConfigurationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ protected function createWithConfig(ContainerInterface $container, string $confi
$configuration->setNamingStrategy($config['naming_strategy']);
}

if (is_string($config['typed_field_mapper'])) {

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"

Check warning on line 91 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"
$configuration->setTypedFieldMapper($container->get($config['typed_field_mapper']));
} elseif ($config['typed_field_mapper'] !== null) {

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, latest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, lowest)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.2, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"

Check warning on line 93 in src/ConfigurationFactory.php

View workflow job for this annotation

GitHub Actions / test (8.3, locked)

Undefined array key "typed_field_mapper"
$configuration->setTypedFieldMapper($config['typed_field_mapper']);
}

if (is_string($config['quote_strategy'])) {
$configuration->setQuoteStrategy($container->get($config['quote_strategy']));
} elseif ($config['quote_strategy'] !== null) {
Expand Down

0 comments on commit fb86890

Please sign in to comment.