Skip to content

Accept FormFactoryInterface in polymorphic collection types #31

@javihgil

Description

@javihgil

Problem

PolymorphicCollectionType and DoctrinePolymorphicCollectionType currently require the concrete FormFactory class instead of FormFactoryInterface.

Current behavior

Passing a valid Symfony form factory implementation that only satisfies FormFactoryInterface is rejected.

Expected behavior

The component should accept FormFactoryInterface, which is the public Symfony contract and the safer dependency for integrations and testing.

Why it matters

This makes the component harder to reuse and harder to test in custom integrations, even when the provided factory is fully compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions