File tree 2 files changed +6
-8
lines changed
2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -68,12 +68,8 @@ class RegistryService extends BaseService {
68
68
69
69
async [ '__on_boot.consolidation' ] ( ) {
70
70
const services = this . services ;
71
- await services . emit ( 'registry.collections' , {
72
- svc_registry : this ,
73
- } ) ;
74
- await services . emit ( 'registry.entries' , {
75
- svc_registry : this ,
76
- } ) ;
71
+ await services . emit ( 'registry.collections' ) ;
72
+ await services . emit ( 'registry.entries' ) ;
77
73
}
78
74
79
75
register_collection ( name ) {
Original file line number Diff line number Diff line change @@ -37,12 +37,14 @@ class DriverService extends BaseService {
37
37
this . interface_to_implementation = { } ;
38
38
}
39
39
40
- async [ '__on_registry.collections' ] ( _ , { svc_registry } ) {
40
+ async [ '__on_registry.collections' ] ( ) {
41
+ const svc_registry = this . services . get ( 'registry' ) ;
41
42
svc_registry . register_collection ( 'interfaces' ) ;
42
43
svc_registry . register_collection ( 'drivers' ) ;
43
44
}
44
- async [ '__on_registry.entries' ] ( _ , { svc_registry } ) {
45
+ async [ '__on_registry.entries' ] ( ) {
45
46
const services = this . services ;
47
+ const svc_registry = services . get ( 'registry' ) ;
46
48
const col_interfaces = svc_registry . get ( 'interfaces' ) ;
47
49
const col_drivers = svc_registry . get ( 'drivers' ) ;
48
50
{
You can’t perform that action at this time.
0 commit comments