Files
huangjingfen/pro_v3.5.1/vendor/topthink/think-swoole/src/resetters/ResetEvent.php
apple 78de918c37 Initial commit: queue workspace
Made-with: Cursor
2026-03-21 02:55:24 +08:00

27 lines
529 B
PHP
Executable File

<?php
namespace think\swoole\resetters;
use think\App;
use think\swoole\concerns\ModifyProperty;
use think\swoole\contract\ResetterInterface;
use think\swoole\Sandbox;
/**
* Class ResetEvent
* @package think\swoole\resetters
*/
class ResetEvent implements ResetterInterface
{
use ModifyProperty;
public function handle(App $app, Sandbox $sandbox)
{
$event = clone $sandbox->getEvent();
$this->modifyProperty($event, $app);
$app->instance('event', $event);
return $app;
}
}