mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-19 11:06:41 +03:00
Add new recipe for phpstreamserver/symfony (#1749)
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use App\Kernel;
|
||||
use PHPStreamServer\Symfony\PHPStreamServerRuntime;
|
||||
|
||||
$_SERVER['APP_RUNTIME'] = PHPStreamServerRuntime::class;
|
||||
|
||||
require_once \dirname(__DIR__).'/vendor/autoload_runtime.php';
|
||||
|
||||
return function (array $context) {
|
||||
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
||||
};
|
||||
@@ -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(),
|
||||
],
|
||||
));
|
||||
};
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"bundles": {
|
||||
"PHPStreamServer\\Symfony\\PHPStreamServerBundle": ["all"]
|
||||
},
|
||||
"copy-from-recipe": {
|
||||
"bin/": "%BIN_DIR%/",
|
||||
"config/": "%CONFIG_DIR%/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
* You're ready to run your Symfony application with PHPStreamServer!
|
||||
Run <comment>bin/phpss start</> command to get started
|
||||
|
||||
* <fg=blue>Read</> the documentation at <comment>https://phpstreamserver.dev/docs/general/</>
|
||||
Reference in New Issue
Block a user