From e6935c4921c53a3afd1fa2f77ceec169e7e218cd Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Mon, 11 Mar 2019 16:57:04 +0100 Subject: [PATCH] Add nyholm/psr7 to the official recipes --- nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml | 14 ++++++++++++++ nyholm/psr7/1.0/manifest.json | 5 +++++ 2 files changed, 19 insertions(+) create mode 100644 nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml create mode 100644 nyholm/psr7/1.0/manifest.json diff --git a/nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml b/nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml new file mode 100644 index 00000000..761aa965 --- /dev/null +++ b/nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml @@ -0,0 +1,14 @@ +services: + _defaults: + public: false + + # Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories) + Psr\Http\Message\RequestFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\StreamFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory' + Psr\Http\Message\UriFactoryInterface: '@nyholm.psr7.psr17_factory' + + nyholm.psr7.psr17_factory: + class: Nyholm\Psr7\Factory\Psr17Factory diff --git a/nyholm/psr7/1.0/manifest.json b/nyholm/psr7/1.0/manifest.json new file mode 100644 index 00000000..e164c6e6 --- /dev/null +++ b/nyholm/psr7/1.0/manifest.json @@ -0,0 +1,5 @@ +{ + "copy-from-recipe": { + "config/": "%CONFIG_DIR%/" + } +}