epa/epa-plugins
最新稳定版本:0.2.1
Composer 安装命令:
composer require epa/epa-plugins
包简介
Plugins for Epa
README 文档
README
These are plugins to use with Epa.
Currently there is one plugin: MetaEventNamePlugin. This plugin can be used
to name events based on the @event tag on a plugin doccomment:
/**
* @event MyCustomEventName
*/
public class MyPlugin implements \Epa\Api\Plugin
{}
This allows plugins to register handlers for the event MyCustomEventName instead
of only the classname.
You can add the plugin using the Epa library as follows:
$plugin = \EpaPlugins\MetaEventNamePluginFactory::create();
$eventDispatcher = \Epa\EventDispatcherFactory::create();
$eventDispatcher->addPlugin($plugin);
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2014-12-24