Skip to content

Commit

Permalink
Merge branch 'master' into enhance/response-status
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbrzzl authored Jun 25, 2023
2 parents 6911d86 + 3ce7337 commit ff907c1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ require (
github.com/urfave/cli/v2 v2.25.7
go.uber.org/atomic v1.11.0
golang.org/x/crypto v0.10.0
google.golang.org/grpc v1.56.0
google.golang.org/grpc v1.56.1
gorm.io/driver/mysql v1.5.1
gorm.io/driver/postgres v1.5.2
gorm.io/driver/sqlserver v1.5.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -992,8 +992,8 @@ google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA5
google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU=
google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ=
google.golang.org/grpc v1.56.0 h1:+y7Bs8rtMd07LeXmL3NxcTLn7mUkbKZqEpPhMNkwJEE=
google.golang.org/grpc v1.56.0/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/grpc v1.56.1 h1:z0dNfjIl0VpaZ9iSVjA6daGatAYwPGstTjt5vkRMFkQ=
google.golang.org/grpc v1.56.1/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s=
google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
Expand Down
8 changes: 4 additions & 4 deletions http/service_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ var (
type ServiceProvider struct {
}

func (database *ServiceProvider) Register(app foundation.Application) {
func (http *ServiceProvider) Register(app foundation.Application) {
app.Singleton(Binding, func(app foundation.Application) (any, error) {
return NewRateLimiter(), nil
})
}

func (database *ServiceProvider) Boot(app foundation.Application) {
func (http *ServiceProvider) Boot(app foundation.Application) {
ConfigFacade = app.MakeConfig()
CacheFacade = app.MakeCache()
LogFacade = app.MakeLog()
ValidationFacade = app.MakeValidation()

database.registerCommands(app)
http.registerCommands(app)
}

func (database *ServiceProvider) registerCommands(app foundation.Application) {
func (http *ServiceProvider) registerCommands(app foundation.Application) {
app.MakeArtisan().Register([]consolecontract.Command{
&console.RequestMakeCommand{},
&console.ControllerMakeCommand{},
Expand Down

0 comments on commit ff907c1

Please sign in to comment.