Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New config property "converterSuffix" #75

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

mike4git
Copy link
Collaborator

This property will be introduced to enable backwards compatibilty to "older" converter declarations.

@mike4git mike4git requested a review from jdreesen May 13, 2024 06:22
@jdreesen
Copy link
Member

What exactly is the problem? What breaks on “old” converter declarations? How do they look?

@@ -28,6 +28,10 @@ private function addConverterSection(ArrayNodeDefinition $rootNode): void
{
$rootNode
->children()
->scalarNode('converterSuffix')
->info('consolidated suffix for all converters')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This message is misleading. It only configures the suffix of the autowiring alias for converter arguments.

@@ -40,7 +40,7 @@ public function loadInternal(array $mergedConfig, ContainerBuilder $container):
/**
* @param array<string, mixed> $config
*/
private function registerConverterConfiguration(string $id, array $config, ContainerBuilder $container): void
private function registerConverterConfiguration(string $id, array $config, ContainerBuilder $container, ?string $converterSuffix): void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is not nullable when there's a default value defined in the config.

mike4git and others added 2 commits December 4, 2024 09:38
Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de>
Co-authored-by: Jacob Dreesen <j.dreesen@neusta.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants