-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
upgrade to laravel 8 #26
Conversation
upgraded symfony/yaml to ^5.1 replaced october\rain import with winter\storm import
…d signature contract from parent class Illuminate Query Builder. Typehints from child classes may not change the typehint from parent classes. https://softwareengineering.stackexchange.com/a/274262/85227
…nt method signature
…ith the parent class
…in the parent class.
Moved getDatabasename to the setMethods() space Removed the variable from the Encryptable trait
Concerning #21 laravel 8 needs yaml 5.1 so the other branch referenced here should aim to optimize for 5.1. |
@tschallacka ok, but I am refering to regular closures provided as an event listener. If the Object which handle the event gets cached (serialized), any closure used as the event handler will currently cause an error when trying to serialize the object. |
Can you provide a unit test code that mimicks that? I'll see if I can do something about that. |
@tschallacka you can try this test CMS page:
|
What a strange place to extend a model. It should be extended in the boot method of the plugin... I'll have a look at it though. |
You can apply this wherever you want, just a quick way to demonstrate |
You can also test this in artisan tinker like this (easiest way):
If you comment out |
@mjauvin that's a good example I can put in a unit test. Thanks. |
Addes serializable protections for emitter and extendable addes Serialisation helper for wrapping closures Added constants to get rid of the magic strings in the traits.
@mjauvin I've added some serialisation protection. Referenced variable connections via @LukeTowers I've added a lot in the latest commits, see the commit message for a broad overview, if you have any questions just ask. I still need to check Dispatcher for closures. Are there any other classes that work via closures that need to be serializeable? |
replaced code with calls to serialisation helpers
Should I squash the commits? And apologies for forgetting to run the code quality check. |
Don't worry about squashing the commits, we take care of the history when we merge. |
This pull request will be closed and archived in 3 days, as there has been no activity in the last 60 days. |
Thanks bot for doing the job you're meant to do :) I still need to take another look at this, but @bennothommo have you had a look yet? |
@LukeTowers not really - was going to take a look when Laravel 9 was out. |
ok luke , |
@lzomedia our main list for tracking progress on this is available here: wintercms/winter#148. This PR is good enough to merge into our WIP branch at the moment though. Thanks @tschallacka for your work on this so far! |
Based on issue:
wintercms/winter#23
All conflicts are resolved, all tests seem to pass without issue.
Some care is needed to review the wintercms implementation for the TransportAdapter as this has changed in Laravel 7 to MailAdapter. The tests pass, but integration may not, but I'm not familiar enough with the mail adapter to make an integration test.