Skip to content

Commit 88f6a24

Browse files
[1.x] Update to new forgetScopedInstances method name (#501)
* Update FlushTemporaryContainerInstances.php * Apply fixes from StyleCI Co-authored-by: StyleCI Bot <[email protected]>
1 parent 2f84035 commit 88f6a24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Listeners/FlushTemporaryContainerInstances.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ public function handle($event): void
1616
$event->app->resetScope();
1717
}
1818

19+
if (method_exists($event->app, 'forgetScopedInstances')) {
20+
$event->app->forgetScopedInstances();
21+
}
22+
1923
foreach ($event->sandbox->make('config')->get('octane.flush', []) as $binding) {
2024
$event->app->forgetInstance($binding);
2125
}

0 commit comments

Comments
 (0)