epa/epa-plugins 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2014-12-24