Skip to content

[8.x] clear Facade resolvedInstances in queue worker resetScope callback#43215

Merged
taylorotwell merged 1 commit into
laravel:8.xfrom
ankorstore-haddowg:fix/clear-facade-resolved-bindings-on-worker-rest-scope
Jul 18, 2022
Merged

[8.x] clear Facade resolvedInstances in queue worker resetScope callback#43215
taylorotwell merged 1 commit into
laravel:8.xfrom
ankorstore-haddowg:fix/clear-facade-resolved-bindings-on-worker-rest-scope

Conversation

@ankorstore-haddowg

Copy link
Copy Markdown
Contributor

Fixes #43151

Ensure scoped bindings are cleared from resolved facade instances when a worker resets its scope, as per https://github.com/laravel/octane/blob/1.x/src/CurrentApplication.php#L24

Comment thread src/Illuminate/Queue/QueueServiceProvider.php Outdated
@ankorstore-haddowg
ankorstore-haddowg force-pushed the fix/clear-facade-resolved-bindings-on-worker-rest-scope branch from 6b9e17e to fbe80ce Compare July 18, 2022 10:25
@ankorstore-haddowg
ankorstore-haddowg force-pushed the fix/clear-facade-resolved-bindings-on-worker-rest-scope branch from fbe80ce to 0577815 Compare July 18, 2022 12:59
@taylorotwell
taylorotwell merged commit 97e68c6 into laravel:8.x Jul 18, 2022
@driesvints

Copy link
Copy Markdown
Member

Thanks @ankorstore-haddowg

@ankorstore-haddowg
ankorstore-haddowg deleted the fix/clear-facade-resolved-bindings-on-worker-rest-scope branch July 18, 2022 14:50
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