-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/add-take-last-methods-to-query
- Loading branch information
Showing
42 changed files
with
550 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
package config | ||
|
||
import ( | ||
"github.com/goravel/framework/contracts" | ||
"github.com/goravel/framework/contracts/foundation" | ||
"github.com/goravel/framework/support" | ||
) | ||
|
||
const Binding = "goravel.config" | ||
|
||
type ServiceProvider struct { | ||
} | ||
|
||
func (config *ServiceProvider) Register(app foundation.Application) { | ||
app.Singleton(Binding, func(app foundation.Application) (any, error) { | ||
func (r *ServiceProvider) Register(app foundation.Application) { | ||
app.Singleton(contracts.BindingConfig, func(app foundation.Application) (any, error) { | ||
return NewApplication(support.EnvPath), nil | ||
}) | ||
} | ||
|
||
func (config *ServiceProvider) Boot(app foundation.Application) { | ||
func (r *ServiceProvider) Boot(app foundation.Application) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package contracts | ||
|
||
const ( | ||
BindingAuth = "goravel.auth" | ||
BindingCache = "goravel.cache" | ||
BindingConfig = "goravel.config" | ||
BindingConsole = "goravel.console" | ||
BindingCrypt = "goravel.crypt" | ||
BindingEvent = "goravel.event" | ||
BindingFilesystem = "goravel.filesystem" | ||
BindingGate = "goravel.gate" | ||
BindingGrpc = "goravel.grpc" | ||
BindingHash = "goravel.hash" | ||
BindingLog = "goravel.log" | ||
BindingMail = "goravel.mail" | ||
BindingOrm = "goravel.orm" | ||
BindingQueue = "goravel.queue" | ||
BindingRateLimiter = "goravel.rate_limiter" | ||
BindingRoute = "goravel.route" | ||
BindingSchedule = "goravel.schedule" | ||
BindingSchema = "goravel.schema" | ||
BindingSeeder = "goravel.seeder" | ||
BindingSession = "goravel.session" | ||
BindingTesting = "goravel.testing" | ||
BindingTranslation = "goravel.translation" | ||
BindingValidation = "goravel.validation" | ||
BindingView = "goravel.view" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.