Skip to content

Commit 74c2cd6

Browse files
committed
v3
1 parent f151add commit 74c2cd6

36 files changed

+55
-651
lines changed

.scrutinizer.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,34 @@ build:
33
nodes:
44
analysis:
55
environment:
6-
php: 8.2
6+
php: 8.3.16
77
tests:
88
override:
99
- php-scrutinizer-run
1010
coverage:
1111
environment:
12-
php: 8.2
12+
php: 8.3.16
1313
tests:
1414
override:
1515
- command: XDEBUG_MODE=coverage php vendor/bin/phpunit --coverage-clover coverage.xml
1616
coverage:
1717
file: coverage.xml
1818
format: clover
19+
php83:
20+
environment:
21+
php: 8.3.16
22+
tests:
23+
override:
24+
- command: composer test
25+
php82:
26+
environment:
27+
php: 8.2.27
28+
tests:
29+
override:
30+
- command: composer test
1931
php81:
2032
environment:
21-
php: 8.1
33+
php: 8.1.31
2234
tests:
2335
override:
24-
- command: php vendor/bin/phpunit
36+
- command: composer test

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030
"psr/http-server-handler": "^1.0",
3131
"psr/http-server-middleware": "^1.0",
3232
"psr/log": "^1.0 || ^2.0 || ^3.0",
33-
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0"
33+
"psr/simple-cache": "^1.0 || ^2.0 || ^3.0",
34+
"sunrise/coder": "^1.0@RC"
3435
},
3536
"require-dev": {
3637
"php-di/php-di": "^7.0",
@@ -72,5 +73,6 @@
7273
},
7374
"config": {
7475
"sort-packages": true
75-
}
76+
},
77+
"minimum-stability": "rc"
7678
}

resources/definitions/codecs/json_codec.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

resources/definitions/middlewares/payload_decoding_middleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
use Sunrise\Http\Router\CodecManagerInterface;
5+
use Sunrise\Coder\CodecManagerInterface;
66
use Sunrise\Http\Router\Middleware\PayloadDecodingMiddleware;
77

88
use function DI\add;

resources/definitions/openapi.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
use Sunrise\Http\Router\CodecManagerInterface;
5+
use Sunrise\Coder\CodecManagerInterface;
66
use Sunrise\Http\Router\OpenApi\OpenApiConfiguration;
77
use Sunrise\Http\Router\OpenApi\OpenApiDocumentManager;
88
use Sunrise\Http\Router\OpenApi\OpenApiDocumentManagerInterface;

resources/definitions/response_resolvers/encodable_response_resolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
use Psr\Http\Message\ResponseFactoryInterface;
6-
use Sunrise\Http\Router\CodecManagerInterface;
6+
use Sunrise\Coder\CodecManagerInterface;
77
use Sunrise\Http\Router\ResponseResolver\EncodableResponseResolver;
88

99
use function DI\add;

resources/definitions/router.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
use Psr\Container\ContainerInterface;
66
use Sunrise\Http\Router\ClassResolver;
77
use Sunrise\Http\Router\ClassResolverInterface;
8-
use Sunrise\Http\Router\CodecManager;
9-
use Sunrise\Http\Router\CodecManagerInterface;
108
use Sunrise\Http\Router\Dictionary\MediaType;
119
use Sunrise\Http\Router\MiddlewareResolver;
1210
use Sunrise\Http\Router\MiddlewareResolverInterface;
@@ -33,8 +31,6 @@
3331
'router.middlewares' => [],
3432
'router.route_middlewares' => [],
3533
'router.event_dispatcher' => null,
36-
'router.codecs' => [],
37-
'router.codecs.context' => [],
3834
'router.default_media_type' => MediaType::JSON,
3935

4036
ParameterResolverChainInterface::class => create(ParameterResolverChain::class)
@@ -82,11 +78,5 @@ classResolver: get(ClassResolverInterface::class),
8278
eventDispatcher: get('router.event_dispatcher'),
8379
),
8480

85-
CodecManagerInterface::class => create(CodecManager::class)
86-
->constructor(
87-
codecs: get('router.codecs'),
88-
context: get('router.codecs.context'),
89-
),
90-
9181
RequestHandlerReflectorInterface::class => create(RequestHandlerReflector::class),
9282
];

src/Annotation/Consumes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace Sunrise\Http\Router\Annotation;
1515

1616
use Attribute;
17-
use Sunrise\Http\Router\MediaTypeInterface;
17+
use Sunrise\Coder\MediaTypeInterface;
1818

1919
/**
2020
* @since 3.0.0

src/Annotation/EncodableResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace Sunrise\Http\Router\Annotation;
1515

1616
use Attribute;
17-
use Sunrise\Http\Router\MediaTypeInterface;
17+
use Sunrise\Coder\MediaTypeInterface;
1818

1919
/**
2020
* @since 3.0.0

src/Annotation/Produces.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace Sunrise\Http\Router\Annotation;
1515

1616
use Attribute;
17-
use Sunrise\Http\Router\MediaTypeInterface;
17+
use Sunrise\Coder\MediaTypeInterface;
1818

1919
/**
2020
* @since 3.0.0

0 commit comments

Comments
 (0)