| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function clean() |
||
| 28 | { |
||
| 29 | if (!$this->drivers) { |
||
| 30 | return; |
||
| 31 | } |
||
| 32 | |||
| 33 | $this->drivers->setValue($this->currentApp['session'], []); |
||
| 34 | $this->currentApp->forgetInstance('session.store'); |
||
| 35 | Facade::clearResolvedInstance('session.store'); |
||
| 36 | |||
| 37 | if (isset($this->currentApp['redirect'])) { |
||
| 38 | /**@var Redirector $redirect */ |
||
| 39 | $redirect = $this->currentApp['redirect']; |
||
| 40 | $redirect->setSession($this->currentApp->make('session.store')); |
||
| 41 | } |
||
| 43 | } |