Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
13 | public function shutdown() |
||
14 | { |
||
15 | if (false === $this->booted) { |
||
16 | return; |
||
17 | } |
||
18 | |||
19 | if (!in_array($this->environment, ['test', 'test_cached'])) { |
||
20 | parent::shutdown(); |
||
21 | return; |
||
22 | } |
||
23 | |||
24 | $container = $this->container; |
||
25 | parent::shutdown(); |
||
26 | $this->cleanupContainer($container); |
||
27 | } |
||
28 | |||
57 |