| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | protected function init($input) |
||
| 17 | { |
||
| 18 | if ($input->getOption('debug')) { |
||
| 19 | $this->sglLoggerEnabled = true; |
||
| 20 | // Start setup logger |
||
| 21 | $doctrine = $this->getContainer()->get('doctrine'); |
||
| 22 | $doctrineConnection = $doctrine->getConnection(); |
||
| 23 | $this->stack = new DebugStack(); |
||
| 24 | $doctrineConnection->getConfiguration()->setSQLLogger($this->stack); |
||
| 25 | // End setup logger |
||
| 39 |