freescout/freescout-dist/app/Http/Middleware/TerminateHandler.php

21 lines
342 B
PHP
Raw Normal View History

2023-12-22 19:40:32 +00:00
<?php
namespace App\Http\Middleware;
use App\Subscription;
use Closure;
class TerminateHandler
{
public function handle($request, Closure $next)
{
return $next($request);
}
public function terminate($request, $response)
{
// Process events which occurred
Subscription::processEvents();
}
}