承接 zarganwar/symfony-event-dispatcher-utils 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

zarganwar/symfony-event-dispatcher-utils

最新稳定版本:0.2.1

Composer 安装命令:

composer require zarganwar/symfony-event-dispatcher-utils

包简介

description

README 文档

README

composer require zarganwar/symfony-event-dispatcher-utils

Usage

  1. Install this lib
  2. Create Subscriber with __invoke method and with typed $event parameter
  3. Type of parameter must be a class, interface or union types
  4. Declare use Trait from this package
  5. Enjoy 😉

Example

class CoolSubscriber implements Symfony\Component\EventDispatcher\EventSubscriberInterface
{
    use Zarganwar\SymfonyEventDispatcherUtils\AutoEventSubscriberTrait;

    public function __invoke(CoolEvent $event): void
    {
        // Be Cool
    }

}

统计信息

  • 总下载量: 379
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2024-11-25