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

illuminate/laravel 5.7 #1698

Merged
merged 3 commits into from
Dec 19, 2018
Merged

illuminate/laravel 5.7 #1698

merged 3 commits into from
Dec 19, 2018

Conversation

luceos
Copy link
Member

@luceos luceos commented Dec 13, 2018

Fixes #1640

Changes proposed in this pull request:

  • Upgrade to Illuminate 5.7
  • Make Gates compliant to contract

Reviewers should focus on:

Confirmed

  • Frontend changes: tested on a local Flarum installation.
  • Backend changes: tests are green (run php vendor/bin/phpunit).

Required changes:

  • Related documentation PR: (Remove if irrelevant)
  • Related core extension PRs: (Remove if irrelevant)

@franzliedke
Copy link
Contributor

I guess we don't really need the manager class anyway, we can just instantiate the log driver we want to use manually.

@tobyzerner
Copy link
Contributor

tobyzerner commented Dec 13, 2018

Do we want to keep using the Gate contract, from looking at User\Gate I see a bunch of unused methods which make using the interface pretty much useless.

We will revamp the authorisation code separately soon, but for now this is fine :)

Are there any other changes required?

@luceos
Copy link
Member Author

luceos commented Dec 17, 2018

Not sure yet. I like to run these changes with a working test suite.

@franzliedke the problem is that our tests use the Mail driver log which resolves LoggerInterface from the container. This interface is bound to our Monolog logger and not the Logging Transport manager as Laravel assumes.

Some of our options:

@tobyzerner
Copy link
Contributor

Let's wait, no rush to get this merged

@luceos
Copy link
Member Author

luceos commented Dec 18, 2018

5.7.18 and .19 are tagged, moving forward.

@luceos luceos changed the title WIP: illuminate/laravel 5.7 illuminate/laravel 5.7 Dec 18, 2018
@luceos
Copy link
Member Author

luceos commented Dec 18, 2018

Final decision has to be made about the Gate contract and or User/Gate implementation, it now has 5 methods which are not implemented.

Everything else seems 👍 good to go.

@franzliedke
Copy link
Contributor

Final decision has to be made about the Gate contract and or User/Gate implementation, it now has 5 methods which are not implemented.

If I understood Toby right, he wants to take care of revamping Gate and other authentication stuff later, so just adding the empty stub is fine.

Copy link
Contributor

@franzliedke franzliedke left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this. 👍

@tobyzerner tobyzerner merged commit 9794a08 into master Dec 19, 2018
@tobyzerner tobyzerner deleted the dk/1640-illuminate-57 branch December 19, 2018 21:50
wzdiyb pushed a commit to wzdiyb/core that referenced this pull request Feb 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants