Skip to content

Commit

Permalink
v3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Jan 30, 2025
1 parent edb374d commit 8e5fd2d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"psr/http-message": "^1.0"
},
"require-dev": {
"php-di/php-di": "^6.4",
"php-http/psr7-integration-tests": "^1.4",
"phpstan/phpstan": "^1.12",
"phpunit/phpunit": "^9.6",
Expand Down
27 changes: 27 additions & 0 deletions resources/definitions/psr17.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

declare(strict_types=1);

use Psr\Http\Message\RequestFactoryInterface;
use Psr\Http\Message\ResponseFactoryInterface;
use Psr\Http\Message\ServerRequestFactoryInterface;
use Psr\Http\Message\StreamFactoryInterface;
use Psr\Http\Message\UploadedFileFactoryInterface;
use Psr\Http\Message\UriFactoryInterface;
use Sunrise\Http\Message\RequestFactory;
use Sunrise\Http\Message\ResponseFactory;
use Sunrise\Http\Message\ServerRequestFactory;
use Sunrise\Http\Message\StreamFactory;
use Sunrise\Http\Message\UploadedFileFactory;
use Sunrise\Http\Message\UriFactory;

use function DI\create;

return [
RequestFactoryInterface::class => create(RequestFactory::class),
ResponseFactoryInterface::class => create(ResponseFactory::class),
ServerRequestFactoryInterface::class => create(ServerRequestFactory::class),
StreamFactoryInterface::class => create(StreamFactory::class),
UploadedFileFactoryInterface::class => create(UploadedFileFactory::class),
UriFactoryInterface::class => create(UriFactory::class),
];

0 comments on commit 8e5fd2d

Please sign in to comment.