Add new recipe for phpstreamserver/symfony (#1749)

This commit is contained in:
Anton Zenkov
2025-01-29 08:50:54 +01:00
committed by GitHub
parent c640837b1c
commit ee921b828c
8 changed files with 40 additions and 40 deletions
@@ -0,0 +1,14 @@
<?php
use PHPStreamServer\Core\ReloadStrategy\ExceptionReloadStrategy;
use PHPStreamServer\Core\Server;
use PHPStreamServer\Symfony\Worker\SymfonyHttpServerProcess;
return static function (Server $server): void {
$server->addWorker(new SymfonyHttpServerProcess(
listen: '0.0.0.0:8080',
reloadStrategies: [
new ExceptionReloadStrategy(),
],
));
};