Skip to content
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

feat: Context can be passed to facades.Auth() directly, and other methods of Auth don't need to pass Contect anymore #372

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

kkumar-gcc
Copy link
Member

@kkumar-gcc kkumar-gcc commented Dec 17, 2023

Closes goravel/goravel#329

πŸ“‘ Description

βœ… Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

β„Ή Additional Information

@kkumar-gcc kkumar-gcc requested a review from a team December 17, 2023 05:13
@kkumar-gcc kkumar-gcc merged commit 5633d5a into master Dec 17, 2023
8 checks passed
@kkumar-gcc kkumar-gcc deleted the kkumar-gcc/#329 branch December 17, 2023 10:21
Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job πŸ‘

guard string
orm orm.Orm
}

func NewAuth(guard string, cache cache.Cache, config config.Config, orm orm.Orm) *Auth {
func NewAuth(guard string, cache cache.Cache, config config.Config, ctx http.Context, orm orm.Orm) *Auth {
Copy link
Contributor

@hwbrzzl hwbrzzl Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: ctx is usually in the first parameter.

Suggested change
func NewAuth(guard string, cache cache.Cache, config config.Config, ctx http.Context, orm orm.Orm) *Auth {
func NewAuth(ctx http.Context, guard string, cache cache.Cache, config config.Config, orm orm.Orm) *Auth {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants