thruster / actions-bundle
Thruster Actions Bundle
1.0.0
2015-12-05 17:01 UTC
Requires
- php: >=7.0
- symfony/dependency-injection: >= 2.5
- symfony/http-kernel: >= 2.5
- thruster/actions: ~1.0
Requires (Dev)
- phpunit/phpunit: ~5.0
This package is auto-updated.
Last update: 2024-09-14 02:36:01 UTC
README
[] (https://github.com/ThrusterIO/actions-bundle/releases) [
] (LICENSE) [
] (https://travis-ci.org/ThrusterIO/actions-bundle) [
] (https://scrutinizer-ci.com/g/ThrusterIO/actions-bundle) [
] (https://scrutinizer-ci.com/g/ThrusterIO/actions-bundle) [
] (https://packagist.org.cn/packages/thruster/actions-bundle)
The Thruster Actions Bundle.
安装
通过 Composer
$ composer require thruster/actions-bundle
用法
此包封装 Actions 组件,并提供标记为服务的支持操作。
示例配置
<service id="some_action_executor" class="SomeActionExecutor"> <tag name="thruster_action_executor"/> </service>
用法
$this->container->get('thruster_actions.executor')->execute(new AllAction('hello'));
使用提供的特质
use ActionsAwareTrait; //... $this->executeActions(new AllAction('hello'));
测试
$ composer test
贡献
请参阅CONTRIBUTING和CONDUCT以获取详细信息。
许可证
请参阅许可证文件获取更多信息。