msales/string-mapper-bundle

Installs: 4 538

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 10

Forks: 1

Open Issues: 1

Type:symfony-bundle

0.0.3 2017-03-14 12:21 UTC

This package is not auto-updated.

Last update: 2024-04-17 18:22:00 UTC


README

Minimum PHP Version

To use this bundle, you need to create new service:

For Mapper with Default:

    mapper.test_default:
        class: "%msales.string_mapper.default.class%" #storm is lost withot it :(
        parent: msales.string_mapper.default
        arguments:
            -
                ala: makota
                kot: madoscali

Default mapper will return requested key if its not found in the map.

For Whitelisting Mapper:

    mapper.test_whitelisting:
        class: "%msales.string_mapper.whitelisting.class%" #storm is lost withot it :(
        parent: msales.string_mapper.whitelisting
        arguments:
            -
                ala: makota
                kot: madoscali

Whitelisting mapper will throw exception if requested key is not in map.

License

StringMapperBundle is released under the MIT Licence. See the bundled LICENSE file for details.