mirror of
https://gh.wpcy.net/https://github.com/rilustrisimo/freescout-support.git
synced 2026-04-27 14:12:23 +08:00
20 lines
342 B
PHP
20 lines
342 B
PHP
<?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();
|
|
}
|
|
}
|