diff --git a/src/Illuminate/Container/Container.php b/src/Illuminate/Container/Container.php index 343ebaf7e65b..5139981c5d72 100755 --- a/src/Illuminate/Container/Container.php +++ b/src/Illuminate/Container/Container.php @@ -1197,6 +1197,17 @@ public function flush() $this->bindings = []; $this->instances = []; $this->abstractAliases = []; + $this->methodBindings = []; + $this->buildStack = []; + $this->extenders = []; + $this->tags = []; + $this->with = []; + $this->contextual = []; + $this->reboundCallbacks = []; + $this->globalResolvingCallbacks = []; + $this->globalAfterResolvingCallbacks = []; + $this->resolvingCallbacks = []; + $this->afterResolvingCallbacks = []; } /** diff --git a/src/Illuminate/Foundation/Application.php b/src/Illuminate/Foundation/Application.php index 530ac977247d..47d1934e7531 100755 --- a/src/Illuminate/Foundation/Application.php +++ b/src/Illuminate/Foundation/Application.php @@ -1201,16 +1201,12 @@ public function flush() { parent::flush(); - $this->buildStack = []; $this->loadedProviders = []; $this->bootedCallbacks = []; $this->bootingCallbacks = []; + $this->terminatingCallbacks = []; $this->deferredServices = []; - $this->reboundCallbacks = []; $this->serviceProviders = []; - $this->resolvingCallbacks = []; - $this->afterResolvingCallbacks = []; - $this->globalResolvingCallbacks = []; } /**