| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | protected function doRequest($request) |
||
| 39 | { |
||
| 40 | if ($this->requestPerformed) { |
||
| 41 | // Reboot sfKernel to avoid parent::doRequest to shutdown it and from Kernel::handle to boot it |
||
| 42 | // This behavior will allow mocking symfony app container service for instance |
||
| 43 | $this->getKernel()->shutdown(); |
||
| 44 | $this->getKernel()->boot(); |
||
| 45 | } else { |
||
| 46 | $this->requestPerformed = true; |
||
| 47 | } |
||
| 48 | |||
| 49 | return parent::doRequest($request); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |