-
Notifications
You must be signed in to change notification settings - Fork 26
upgrade: v1.17 #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
hwbrzzl
wants to merge
4
commits into
master
Choose a base branch
from
bowen/upgrade-v1.17
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
upgrade: v1.17 #91
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,4 +1,8 @@ | ||
| .idea | ||
| .vscode | ||
| .DS_Store | ||
| storage/framework | ||
| launch.json | ||
| .env | ||
| .env.* | ||
| !.env.example | ||
| storage | ||
hwbrzzl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| tmp | ||
This file contains hidden or 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,30 @@ | ||
| package commands | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/console" | ||
| "github.com/goravel/framework/contracts/console/command" | ||
| ) | ||
|
|
||
| type Test struct { | ||
| } | ||
|
|
||
| // Signature The name and signature of the console command. | ||
| func (r *Test) Signature() string { | ||
| return "app:test" | ||
| } | ||
|
|
||
| // Description The console command description. | ||
| func (r *Test) Description() string { | ||
| return "Command description" | ||
| } | ||
|
|
||
| // Extend The console command extend. | ||
| func (r *Test) Extend() command.Extend { | ||
| return command.Extend{Category: "app"} | ||
| } | ||
|
|
||
| // Handle Execute the console command. | ||
| func (r *Test) Handle(ctx console.Context) error { | ||
|
|
||
| return nil | ||
| } | ||
hwbrzzl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,10 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| contractsfoundation "github.com/goravel/framework/contracts/foundation" | ||
| "github.com/goravel/framework/foundation" | ||
| ) | ||
|
|
||
| func App() contractsfoundation.Application { | ||
| return foundation.App | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/console" | ||
| ) | ||
|
|
||
| func Artisan() console.Artisan { | ||
| return App().MakeArtisan() | ||
| } |
This file contains hidden or 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,10 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/auth" | ||
| "github.com/goravel/framework/contracts/http" | ||
| ) | ||
|
|
||
| func Auth(ctx ...http.Context) auth.Auth { | ||
| return App().MakeAuth(ctx...) | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/cache" | ||
| ) | ||
|
|
||
| func Cache() cache.Cache { | ||
| return App().MakeCache() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/config" | ||
| ) | ||
|
|
||
| func Config() config.Config { | ||
| return App().MakeConfig() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/crypt" | ||
| ) | ||
|
|
||
| func Crypt() crypt.Crypt { | ||
| return App().MakeCrypt() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/database/db" | ||
| ) | ||
|
|
||
| func DB() db.DB { | ||
| return App().MakeDB() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/event" | ||
| ) | ||
|
|
||
| func Event() event.Instance { | ||
| return App().MakeEvent() | ||
| } |
This file contains hidden or 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,10 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/auth/access" | ||
| "github.com/goravel/framework/contracts/http" | ||
| ) | ||
|
|
||
| func Gate(ctx ...http.Context) access.Gate { | ||
| return App().MakeGate() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/grpc" | ||
| ) | ||
|
|
||
| func Grpc() grpc.Grpc { | ||
| return App().MakeGrpc() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/hash" | ||
| ) | ||
|
|
||
| func Hash() hash.Hash { | ||
| return App().MakeHash() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/http/client" | ||
| ) | ||
|
|
||
| func Http() client.Request { | ||
| return App().MakeHttp() | ||
| } |
This file contains hidden or 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,11 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "context" | ||
|
|
||
| "github.com/goravel/framework/contracts/translation" | ||
| ) | ||
|
|
||
| func Lang(ctx context.Context) translation.Translator { | ||
| return App().MakeLang(ctx) | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/log" | ||
| ) | ||
|
|
||
| func Log() log.Log { | ||
| return App().MakeLog() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/mail" | ||
| ) | ||
|
|
||
| func Mail() mail.Mail { | ||
| return App().MakeMail() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/database/orm" | ||
| ) | ||
|
|
||
| func Orm() orm.Orm { | ||
| return App().MakeOrm() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/process" | ||
| ) | ||
|
|
||
| func Process() process.Process { | ||
| return App().MakeProcess() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/queue" | ||
| ) | ||
|
|
||
| func Queue() queue.Queue { | ||
| return App().MakeQueue() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/http" | ||
| ) | ||
|
|
||
| func RateLimiter() http.RateLimiter { | ||
| return App().MakeRateLimiter() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/route" | ||
| ) | ||
|
|
||
| func Route() route.Route { | ||
| return App().MakeRoute() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/schedule" | ||
| ) | ||
|
|
||
| func Schedule() schedule.Schedule { | ||
| return App().MakeSchedule() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/database/schema" | ||
| ) | ||
|
|
||
| func Schema() schema.Schema { | ||
| return App().MakeSchema() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/database/seeder" | ||
| ) | ||
|
|
||
| func Seeder() seeder.Facade { | ||
| return App().MakeSeeder() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/session" | ||
| ) | ||
|
|
||
| func Session() session.Manager { | ||
| return App().MakeSession() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/filesystem" | ||
| ) | ||
|
|
||
| func Storage() filesystem.Storage { | ||
| return App().MakeStorage() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/telemetry" | ||
| ) | ||
|
|
||
| func Telemetry() telemetry.Telemetry { | ||
| return App().MakeTelemetry() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/testing" | ||
| ) | ||
|
|
||
| func Testing() testing.Testing { | ||
| return App().MakeTesting() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/validation" | ||
| ) | ||
|
|
||
| func Validation() validation.Validation { | ||
| return App().MakeValidation() | ||
| } |
This file contains hidden or 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,9 @@ | ||
| package facades | ||
|
|
||
| import ( | ||
| "github.com/goravel/framework/contracts/view" | ||
| ) | ||
|
|
||
| func View() view.View { | ||
| return App().MakeView() | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.