From ee921b828ced619aea3ff815d0b57999e9a7975c Mon Sep 17 00:00:00 2001 From: Anton Zenkov Date: Wed, 29 Jan 2025 15:50:54 +0800 Subject: [PATCH] Add new recipe for phpstreamserver/symfony (#1749) --- .../0.1/config/packages/phprunner.yaml | 12 ------------ luzrain/phprunner-bundle/0.1/manifest.json | 8 -------- .../0.2/config/packages/phpstreamserver.yaml | 12 ------------ luzrain/phpstreamserver-bundle/0.2/manifest.json | 8 -------- phpstreamserver/symfony/0.4/bin/phpss | 13 +++++++++++++ .../symfony/0.4/config/phpss.config.php | 14 ++++++++++++++ phpstreamserver/symfony/0.4/manifest.json | 9 +++++++++ phpstreamserver/symfony/0.4/post-install.txt | 4 ++++ 8 files changed, 40 insertions(+), 40 deletions(-) delete mode 100644 luzrain/phprunner-bundle/0.1/config/packages/phprunner.yaml delete mode 100644 luzrain/phprunner-bundle/0.1/manifest.json delete mode 100644 luzrain/phpstreamserver-bundle/0.2/config/packages/phpstreamserver.yaml delete mode 100644 luzrain/phpstreamserver-bundle/0.2/manifest.json create mode 100755 phpstreamserver/symfony/0.4/bin/phpss create mode 100644 phpstreamserver/symfony/0.4/config/phpss.config.php create mode 100644 phpstreamserver/symfony/0.4/manifest.json create mode 100644 phpstreamserver/symfony/0.4/post-install.txt diff --git a/luzrain/phprunner-bundle/0.1/config/packages/phprunner.yaml b/luzrain/phprunner-bundle/0.1/config/packages/phprunner.yaml deleted file mode 100644 index 72f3b6306..000000000 --- a/luzrain/phprunner-bundle/0.1/config/packages/phprunner.yaml +++ /dev/null @@ -1,12 +0,0 @@ -phprunner: - servers: - - - name: Webserver - listen: http://0.0.0.0:8080 - processes: 4 - - reload_strategy: - on_exception: - active: true - on_file_change: - active: true diff --git a/luzrain/phprunner-bundle/0.1/manifest.json b/luzrain/phprunner-bundle/0.1/manifest.json deleted file mode 100644 index ea9509d62..000000000 --- a/luzrain/phprunner-bundle/0.1/manifest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "bundles": { - "Luzrain\\PhpRunnerBundle\\PhpRunnerBundle": ["all"] - }, - "copy-from-recipe": { - "config/": "%CONFIG_DIR%/" - } -} diff --git a/luzrain/phpstreamserver-bundle/0.2/config/packages/phpstreamserver.yaml b/luzrain/phpstreamserver-bundle/0.2/config/packages/phpstreamserver.yaml deleted file mode 100644 index 803ebb264..000000000 --- a/luzrain/phpstreamserver-bundle/0.2/config/packages/phpstreamserver.yaml +++ /dev/null @@ -1,12 +0,0 @@ -phpstreamserver: - servers: - - - name: Webserver - listen: http://0.0.0.0:8080 - processes: 4 - - reload_strategy: - on_exception: - active: true - on_file_change: - active: true diff --git a/luzrain/phpstreamserver-bundle/0.2/manifest.json b/luzrain/phpstreamserver-bundle/0.2/manifest.json deleted file mode 100644 index bb02267c6..000000000 --- a/luzrain/phpstreamserver-bundle/0.2/manifest.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "bundles": { - "Luzrain\\PHPStreamServerBundle\\PHPStreamServerBundle": ["all"] - }, - "copy-from-recipe": { - "config/": "%CONFIG_DIR%/" - } -} diff --git a/phpstreamserver/symfony/0.4/bin/phpss b/phpstreamserver/symfony/0.4/bin/phpss new file mode 100755 index 000000000..0953c4291 --- /dev/null +++ b/phpstreamserver/symfony/0.4/bin/phpss @@ -0,0 +1,13 @@ +#!/usr/bin/env php +addWorker(new SymfonyHttpServerProcess( + listen: '0.0.0.0:8080', + reloadStrategies: [ + new ExceptionReloadStrategy(), + ], + )); +}; diff --git a/phpstreamserver/symfony/0.4/manifest.json b/phpstreamserver/symfony/0.4/manifest.json new file mode 100644 index 000000000..a8ed11d52 --- /dev/null +++ b/phpstreamserver/symfony/0.4/manifest.json @@ -0,0 +1,9 @@ +{ + "bundles": { + "PHPStreamServer\\Symfony\\PHPStreamServerBundle": ["all"] + }, + "copy-from-recipe": { + "bin/": "%BIN_DIR%/", + "config/": "%CONFIG_DIR%/" + } +} diff --git a/phpstreamserver/symfony/0.4/post-install.txt b/phpstreamserver/symfony/0.4/post-install.txt new file mode 100644 index 000000000..63278037f --- /dev/null +++ b/phpstreamserver/symfony/0.4/post-install.txt @@ -0,0 +1,4 @@ +* You're ready to run your Symfony application with PHPStreamServer! + Run bin/phpss start command to get started + +* Read the documentation at https://phpstreamserver.dev/docs/general/