msales / string-mapper-bundle
Package info
github.com/msales/StringMapperBundle
Type:symfony-bundle
pkg:composer/msales/string-mapper-bundle
0.0.3
2017-03-14 12:21 UTC
Requires
- php: >=7.0.0
- symfony/config: 2.8.*|^3.0
- symfony/dependency-injection: 2.8.*|^3.0
- symfony/framework-bundle: ~2.8|^3.0
- symfony/http-kernel: 2.8.*|^3.0
- twig/twig: ^1.0
Requires (Dev)
- phpunit/phpunit: ~5.6
This package is not auto-updated.
Last update: 2026-03-19 03:30:34 UTC
README
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.