File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Bundle/FrameworkBundle/Test Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Bundle \FrameworkBundle \Test ;
13
13
14
+ use Symfony \Component \DependencyInjection \ResettableContainerInterface ;
14
15
use Symfony \Component \Finder \Finder ;
15
16
use Symfony \Component \HttpKernel \KernelInterface ;
16
17
@@ -171,7 +172,11 @@ protected static function createKernel(array $options = array())
171
172
protected static function ensureKernelShutdown ()
172
173
{
173
174
if (null !== static ::$ kernel ) {
175
+ $ container = static ::$ kernel ->getContainer ();
174
176
static ::$ kernel ->shutdown ();
177
+ if ($ container instanceof ResettableContainerInterface) {
178
+ $ container ->reset ();
179
+ }
175
180
}
176
181
}
177
182
Original file line number Diff line number Diff line change 23
23
use Symfony \Component \DependencyInjection \Loader \PhpFileLoader ;
24
24
use Symfony \Component \DependencyInjection \Loader \DirectoryLoader ;
25
25
use Symfony \Component \DependencyInjection \Loader \ClosureLoader ;
26
- use Symfony \Component \DependencyInjection \ResettableContainerInterface ;
27
26
use Symfony \Component \HttpFoundation \Request ;
28
27
use Symfony \Component \HttpFoundation \Response ;
29
28
use Symfony \Component \HttpKernel \Bundle \BundleInterface ;
@@ -171,10 +170,6 @@ public function shutdown()
171
170
$ bundle ->setContainer (null );
172
171
}
173
172
174
- if ($ this ->container instanceof ResettableContainerInterface) {
175
- $ this ->container ->reset ();
176
- }
177
-
178
173
$ this ->container = null ;
179
174
}
180
175
You can’t perform that action at this time.
0 commit comments