Commit 2a34727 1 parent 9fb1683 commit 2a34727 Copy full SHA for 2a34727
File tree 1 file changed +10
-17
lines changed
packages/platform/platform-fastify/src/components
1 file changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -40,22 +40,6 @@ declare global {
40
40
41
41
export class PlatformFastify extends PlatformAdapter < FastifyInstance > {
42
42
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
- ] ;
59
43
private staticsDecorated = false ;
60
44
61
45
/**
@@ -358,4 +342,13 @@ export class PlatformFastify extends PlatformAdapter<FastifyInstance> {
358
342
}
359
343
}
360
344
361
- adapter ( PlatformFastify ) ;
345
+ adapter ( PlatformFastify , [
346
+ {
347
+ token : PlatformResponse ,
348
+ useClass : PlatformFastifyResponse
349
+ } ,
350
+ {
351
+ token : PlatformRequest ,
352
+ useClass : PlatformFastifyRequest
353
+ }
354
+ ] ) ;
You can’t perform that action at this time.
0 commit comments