Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.03 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.03 KB

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.