Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] Possibility to get transformers from DataTransformerChain #9503

Copy link
Copy link
Closed
@jumale

Description

@jumale
Issue body actions

Hi guys.
I'm working on my bundle for javascript validation for the symfony2 forms. In my implementation I need to get some necessary data from Form elements and pass them to the JS side. Among other data I need to know what kind of data-transformers were attached to a form element. It's not a problem in case of a simple transformer object, but I can't get access to transformers which are placed into a chain, because they are stored there in a protected property. And it's very important for me.
At the moment I've solved this issue using ReflectionClass, but it would be great to have a native functionality for this.
Could you please add the getTransformers() method to the Symfony\Component\Form\Extension\Core\DataTransformer\DataTransformerChain class.
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.