nyholm_psr7.yaml 1.1 KB

12345678910111213141516171819202122
  1. services:
  2. # Register nyholm/psr7 services for autowiring with PSR-17 (HTTP factories)
  3. Psr\Http\Message\RequestFactoryInterface: '@nyholm.psr7.psr17_factory'
  4. Psr\Http\Message\ResponseFactoryInterface: '@nyholm.psr7.psr17_factory'
  5. Psr\Http\Message\ServerRequestFactoryInterface: '@nyholm.psr7.psr17_factory'
  6. Psr\Http\Message\StreamFactoryInterface: '@nyholm.psr7.psr17_factory'
  7. Psr\Http\Message\UploadedFileFactoryInterface: '@nyholm.psr7.psr17_factory'
  8. Psr\Http\Message\UriFactoryInterface: '@nyholm.psr7.psr17_factory'
  9. # Register nyholm/psr7 services for autowiring with HTTPlug factories
  10. Http\Message\MessageFactory: '@nyholm.psr7.httplug_factory'
  11. Http\Message\RequestFactory: '@nyholm.psr7.httplug_factory'
  12. Http\Message\ResponseFactory: '@nyholm.psr7.httplug_factory'
  13. Http\Message\StreamFactory: '@nyholm.psr7.httplug_factory'
  14. Http\Message\UriFactory: '@nyholm.psr7.httplug_factory'
  15. nyholm.psr7.psr17_factory:
  16. class: Nyholm\Psr7\Factory\Psr17Factory
  17. nyholm.psr7.httplug_factory:
  18. class: Nyholm\Psr7\Factory\HttplugFactory