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

v1.2.4 #161

Merged
merged 21 commits into from
Dec 28, 2023
Merged

v1.2.4 #161

merged 21 commits into from
Dec 28, 2023

Conversation

LukeTowers
Copy link
Member

No description provided.

LukeTowers and others added 21 commits July 12, 2023 21:13
The Event Dispatcher's getRawListeners() method has been changed to account for the fact that Winter's listeners are stored with priority and Laravel doesn't expect that. The event:listen command has also been modified to dig deeper into closures in order to correctly report their original locations.
Replaces #145

This preserves current behaviour: an event listener defined on the model with default priority (0) will get called first, then the model method will get called (through an event listener with default priority).

If an event listener uses a LOWER priority (e.g. -1), the model method will get called first (because its priority is 0 by default)
Currently a memory cache is used to avoid making unnecessary calls to the database, when there have been no changes.

This cache is cleared by executing insert, update, delete or truncate. With this change, the cache is also cleared when using upsert.
Adds support for automatic detaching / deletion of relationships using pivot tables.

Related: wintercms/winter#386, wintercms/winter#972.
Documented by wintercms/docs#159.

Co-authored-by: Ben Thomson <[email protected]>
Co-authored-by: Luke Towers <[email protected]>
Replaces #153.

In PHP 8.3, [calling `get_class()` and `get_parent_class()` functions without arguments is deprecated](https://php.watch/versions/8.3/get_class-get_parent_class-parameterless-deprecated).

References:
 - [PHP RFC: Deprecate functions with overloaded signatures](https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures)
 - [PHP 8.3: get_class() and get_parent_class() function calls without arguments deprecated](https://php.watch/versions/8.3/get_class-get_parent_class-parameterless-deprecated)
@LukeTowers LukeTowers merged commit d276b70 into 1.2 Dec 28, 2023
22 checks passed
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.

8 participants