@@ -27,14 +27,14 @@ GRPC_PORT=
2727
2828 setup .Install (
2929 // Add the grpc service provider to the providers array in bootstrap/providers.go
30- modify .AddProviderApply (moduleImport , grpcServiceProvider ),
30+ modify .RegisterProvider (moduleImport , grpcServiceProvider ),
3131
3232 // Create config/grpc.go, routes/grpc.go
3333 modify .File (configPath ).Overwrite (stubs .Config (setup .Paths ().Config ().Package (), setup .Paths ().Facades ().Import (), facadesPackage )),
3434 modify .File (grpcRoutePath ).Overwrite (stubs .Routes (setup .Paths ().Routes ().Package ())),
3535
3636 // Add the Grpc function to WithRouting
37- modify .AddRouteApply (routesImport , grpcFunc ),
37+ modify .RegisterRoute (routesImport , grpcFunc ),
3838
3939 // Register the Grpc facade
4040 modify .File (facadePath ).Overwrite (stubs .GrpcFacade (facadesPackage )),
@@ -47,13 +47,13 @@ GRPC_PORT=
4747 modify .File (facadePath ).Remove (),
4848
4949 // Remove the Grpc function from WithRouting
50- modify .RemoveRouteApply (routesImport , grpcFunc ),
50+ modify .UnregisterRoute (routesImport , grpcFunc ),
5151
5252 // Remove config/grpc.go, routes/grpc.go
5353 modify .File (configPath ).Remove (),
5454 modify .File (grpcRoutePath ).Remove (),
5555
5656 // Remove the gRPC service provider from the providers array in bootstrap/providers.go
57- modify .RemoveProviderApply (moduleImport , grpcServiceProvider ),
57+ modify .UnregisterProvider (moduleImport , grpcServiceProvider ),
5858 ).Execute ()
5959}
0 commit comments