mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 23:26:40 +03:00
15 lines
391 B
PHP
15 lines
391 B
PHP
<?php
|
|
|
|
use PHPStreamServer\Core\ReloadStrategy\ExceptionReloadStrategy;
|
|
use PHPStreamServer\Core\Server;
|
|
use PHPStreamServer\Symfony\Worker\SymfonyHttpServerWorker;
|
|
|
|
return static function (Server $server): void {
|
|
$server->addWorker(new SymfonyHttpServerWorker(
|
|
listen: '0.0.0.0:8080',
|
|
reloadStrategies: [
|
|
new ExceptionReloadStrategy(),
|
|
],
|
|
));
|
|
};
|