From 3d169b655df0521305cd6147e6394f9a95aa3cec Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Fri, 1 Feb 2019 19:38:52 +0100 Subject: [PATCH] Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories) --- .../psr7/1.0/config/packages/nyholm_psr7.yaml | 24 ++++++------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml b/nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml index d8bb1a4b..761aa965 100644 --- a/nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml +++ b/nyholm/psr7/1.0/config/packages/nyholm_psr7.yaml @@ -2,23 +2,13 @@ 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' - - ## Register nyholm/psr7 services for autowiring with HTTPlug - #Http\Message\MessageFactory: '@nyholm.psr7.httplug_factory' - #Http\Message\RequestFactory: '@nyholm.psr7.httplug_factory' - #Http\Message\ResponseFactory: '@nyholm.psr7.httplug_factory' - #Http\Message\StreamFactory: '@nyholm.psr7.httplug_factory' - #Http\Message\UriFactory: '@nyholm.psr7.httplug_factory' - - nyholm.psr7.httplug_factory: - class: Nyholm\Psr7\Factory\HttplugFactory + # 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