Skip to content

remove matthiasnoback dependency for increased Symfony compatibility#39

Open
davidpocar wants to merge 1 commit into
consistence:masterfrom
davidpocar:remove-matthiasnoback-dependency-for-increased-symfony-compatibility
Open

remove matthiasnoback dependency for increased Symfony compatibility#39
davidpocar wants to merge 1 commit into
consistence:masterfrom
davidpocar:remove-matthiasnoback-dependency-for-increased-symfony-compatibility

Conversation

@davidpocar

Copy link
Copy Markdown

No description provided.

@davidpocar
davidpocar force-pushed the remove-matthiasnoback-dependency-for-increased-symfony-compatibility branch 2 times, most recently from bc0c530 to 24151cb Compare September 23, 2025 08:17
Comment on lines +18 to +22
$container->registerExtension(new ConsistenceJmsSerializerExtension());

foreach ($container->getExtensions() as $extension) {
$extension->load([], $container);
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this should also be included in the createContainer() method?
Imagine, that there are several test cases in this test, all of them would duplicate this code otherwise, right?

Or in the case of load() maybe if not directly in createContainer(), then it should be again a separate method. This probably depends on whether there is a chance that something else needs to be done between container creation and load() in test code (e.g. something that we would not want to be handled in createContaiener() as well). I mean obviously not here, but please look also at the other repositories where we are handling this.

string $tagName
): void
{
$tagExists = false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think all of this can be implemented just with Consistence\Type\ArrayType\ArrayType::containsValueByValueCallback()? Or am I missing something? :)

@davidpocar
davidpocar force-pushed the remove-matthiasnoback-dependency-for-increased-symfony-compatibility branch 2 times, most recently from 5064a22 to 507702b Compare September 29, 2025 16:08
@davidpocar
davidpocar force-pushed the remove-matthiasnoback-dependency-for-increased-symfony-compatibility branch from 507702b to 902c89d Compare September 29, 2025 16:10
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