Skip to content

Repository files navigation

StringMapperBundle

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages