We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In this commit: laravel/framework@2971b64 the resetScope() method on the container class was changed to forgetScopedInstances() but this change was never reflected in Octane in https://github.com/laravel/octane/blob/1.x/src/Listeners/FlushTemporaryContainerInstances.php
resetScope()
forgetScopedInstances()
<?php namespace Laravel\Octane\Listeners; class FlushTemporaryContainerInstances { /** * Handle the event. * * @param mixed $event * @return void */ public function handle($event): void { if (method_exists($event->app, 'resetScope')) { $event->app->resetScope(); } // Add this section if (method_exists($event->app, 'forgetScopedInstances')) { $event->app->forgetScopedInstances(); } foreach ($event->sandbox->make('config')->get('octane.flush', []) as $binding) { $event->app->forgetInstance($binding); } } }
The text was updated successfully, but these errors were encountered:
Thanks for noting this. I sent in a PR: #501
Sorry, something went wrong.
No branches or pull requests
Description:
In this commit: laravel/framework@2971b64 the
resetScope()
method on the container class was changed toforgetScopedInstances()
but this change was never reflected in Octane in https://github.com/laravel/octane/blob/1.x/src/Listeners/FlushTemporaryContainerInstances.phpSolution
The text was updated successfully, but these errors were encountered: