thruster/data-modifier-bundle
Composer 安装命令:
composer require thruster/data-modifier-bundle
包简介
Thruster DataModifier Bundle
README 文档
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.
统计信息
- 总下载量: 8
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-12-05