Skip to content

Commit

Permalink
[1.x] Update to new forgetScopedInstances method name (#501)
Browse files Browse the repository at this point in the history
* Update FlushTemporaryContainerInstances.php

* Apply fixes from StyleCI

Co-authored-by: StyleCI Bot <[email protected]>
  • Loading branch information
driesvints and StyleCIBot authored Mar 31, 2022
1 parent 2f84035 commit 88f6a24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Listeners/FlushTemporaryContainerInstances.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public function handle($event): void
$event->app->resetScope();
}

if (method_exists($event->app, 'forgetScopedInstances')) {
$event->app->forgetScopedInstances();
}

foreach ($event->sandbox->make('config')->get('octane.flush', []) as $binding) {
$event->app->forgetInstance($binding);
}
Expand Down

0 comments on commit 88f6a24

Please sign in to comment.