diff --git a/src/frankenphp-symfony/src/Runner.php b/src/frankenphp-symfony/src/Runner.php index 46c8378..73c9e0b 100644 --- a/src/frankenphp-symfony/src/Runner.php +++ b/src/frankenphp-symfony/src/Runner.php @@ -16,11 +16,8 @@ */ class Runner implements RunnerInterface { - private HttpKernelInterface $kernel; - - public function __construct(HttpKernelInterface $kernel) + public function __construct(private HttpKernelInterface $kernel) { - $this->kernel = $kernel; } public function run(): int @@ -40,6 +37,8 @@ public function run(): int if ($this->kernel instanceof TerminableInterface && $sfRequest && $sfResponse) { $this->kernel->terminate($sfRequest, $sfResponse); } + + gc_collect_cycles(); } while ($ret); return 0;