基于 laravel 开发的 Flarum 论坛,源代码里面的 GroupWillBeSaved 事件有什么用?

$this->events->fire(
new GroupWillBeSaved($group, $actor, $data)
);
https://github.com/flarum/core/blob/master/src/Core/Command/EditGroupHandler.php
1)event 和 listener 配对使用, GroupWillBeSaved 事件对应的 listener 在哪儿呢?
2)events->fire(new GroupWillBeSaved($group, $actor, $data)); 执行流程是怎么样的?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师