Skip to content

Integration with symfony/string for better strings manipulation #1316

@norberttech

Description

@norberttech

That would be very helpful integration from text processing point of view.

Library: https://github.com/symfony/string

It should be pretty straightforward since we would just need to create a scalar function for each of the methods string methods.

I think we can make it a part of TextAdapter, just put all scalar functions inside of it.
All those functions should be also added to TextAdapter DSL functions, with a text_ prefix.
Those functions should exist in the src/core/etl/src/Flow/ETL/Function namespace and be part of the core ETL.

We don't even need to create for them dedicated DSL functions (as they can only operate on string), what we can do is simply expose them through src/core/etl/src/Flow/ETL/Function/ScalarFunctionChain.php so they would all be available through ref()->xxxx

Documentation: How to create scalar function

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions