Skip to content

Commit

Permalink
Add new recipe for phpstreamserver/symfony (#1749)
Browse files Browse the repository at this point in the history
  • Loading branch information
luzrain authored Jan 29, 2025
1 parent c640837 commit ee921b8
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 40 deletions.
12 changes: 0 additions & 12 deletions luzrain/phprunner-bundle/0.1/config/packages/phprunner.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions luzrain/phprunner-bundle/0.1/manifest.json

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions luzrain/phpstreamserver-bundle/0.2/manifest.json

This file was deleted.

13 changes: 13 additions & 0 deletions phpstreamserver/symfony/0.4/bin/phpss
Original file line number Diff line number Diff line change
@@ -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']);
};
14 changes: 14 additions & 0 deletions phpstreamserver/symfony/0.4/config/phpss.config.php
Original file line number Diff line number Diff line change
@@ -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(),
],
));
};
9 changes: 9 additions & 0 deletions phpstreamserver/symfony/0.4/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bundles": {
"PHPStreamServer\\Symfony\\PHPStreamServerBundle": ["all"]
},
"copy-from-recipe": {
"bin/": "%BIN_DIR%/",
"config/": "%CONFIG_DIR%/"
}
}
4 changes: 4 additions & 0 deletions phpstreamserver/symfony/0.4/post-install.txt
Original file line number Diff line number Diff line change
@@ -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/</>

0 comments on commit ee921b8

Please sign in to comment.