Skip to content

[Form] Possibility to get transformers from DataTransformerChain #9503

@jumale

Description

@jumale

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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy