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

[11.x] Add pull methods to Context #50904

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

renegeuze
Copy link
Contributor

Many features like Session and Collections have a pull method that gets the data and immediately deletes it.
Context missed that functionality, while its use cases can mimic session use cases.

A simple use case could be capturing context for database logging, and pulling it because the additional context is no longer needed inside file logging.

Although highly unlikely, this feature can be breaking if a macro is added with the same name and different functionality.

@renegeuze renegeuze changed the title Add pull methods to Context [11.x] Add pull methods to Context Apr 3, 2024
@taylorotwell taylorotwell merged commit 1b453a8 into laravel:11.x Apr 3, 2024
30 checks passed
@renegeuze renegeuze deleted the feature/context-pull branch April 3, 2024 16:37
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.

None yet

3 participants