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
- Install this lib
- Create Subscriber with __invoke method and with typed $event parameter
- Type of parameter must be a class, interface or union types
- Declare use Trait from this package
- 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
其他信息
- 授权协议: proprietary
- 更新时间: 2024-11-25