thruster / data-modifier-bundle
Thruster DataModifier Bundle
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.0
- funct/funct: ~1.0
- symfony/dependency-injection: >= 2.5
- symfony/http-kernel: >= 2.5
- thruster/data-modifier: ~1.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2024-12-14 04:19:02 UTC
README
[] (https://github.com/ThrusterIO/data-modifier-bundle/releases) [] (LICENSE) [] (https://travis-ci.org/ThrusterIO/data-modifier-bundle) [] (https://scrutinizer-ci.com/g/ThrusterIO/data-modifier-bundle) [] (https://scrutinizer-ci.com/g/ThrusterIO/data-modifier-bundle) [] (https://packagist.org/packages/thruster/data-modifier-bundle)
The Thruster DataModifier Bundle.
Install
Via Composer
$ composer require thruster/data-modifier-bundle
Usage
This bundle wraps DataModifier Component and provides support for modifiers as tagged services.
Example configuration:
<service id="some_modifier" class="SomeModifier"> <tag name="thruster_data_modifier" group="first_group"/> <tag name="thruster_data_modifier" group="second_group" priority="2"/> </service> <service id="another_modifier" class="AnotherModifier"> <tag name="thruster_data_modifier" group="first_group"/> <tag name="thruster_data_modifier" group="second_group" priority="1"/> </service>
Usage:
$this->container->get('thruster_data_modifiers')->getGroup('first_group')->modify($input);
Using provided trait:
use DataModifiersAwareTrait; //... $this->getDataModifierGroup('second_group')->modify($input);
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
License
Please see License File for more information.