thruster/actions-bundle

Thruster Actions Bundle

1.0.0 2015-12-05 17:01 UTC

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)

[邮件] (mailto:team@thruster.io)

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

贡献

请参阅CONTRIBUTINGCONDUCT以获取详细信息。

许可证

请参阅许可证文件获取更多信息。