Skip to content

Commit 2a34727

Browse files
committed
fix(platform-fastify): use new adapter convention introduced in v8.5.2
1 parent 9fb1683 commit 2a34727

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

packages/platform/platform-fastify/src/components/PlatformFastify.ts

+10-17
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,6 @@ declare global {
4040

4141
export class PlatformFastify extends PlatformAdapter<FastifyInstance> {
4242
readonly NAME = "fastify";
43-
44-
readonly providers = [
45-
{
46-
token: PlatformHandler
47-
},
48-
{token: PlatformApplication},
49-
{token: Platform},
50-
{
51-
token: PlatformResponse,
52-
useClass: PlatformFastifyResponse
53-
},
54-
{
55-
token: PlatformRequest,
56-
useClass: PlatformFastifyRequest
57-
}
58-
];
5943
private staticsDecorated = false;
6044

6145
/**
@@ -358,4 +342,13 @@ export class PlatformFastify extends PlatformAdapter<FastifyInstance> {
358342
}
359343
}
360344

361-
adapter(PlatformFastify);
345+
adapter(PlatformFastify, [
346+
{
347+
token: PlatformResponse,
348+
useClass: PlatformFastifyResponse
349+
},
350+
{
351+
token: PlatformRequest,
352+
useClass: PlatformFastifyRequest
353+
}
354+
]);

0 commit comments

Comments
 (0)