| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function setupConsoleApp(): ConsoleApplication |
||
| 33 | { |
||
| 34 | $services = $this->mvcApp->getServiceManager(); |
||
| 35 | |||
| 36 | $version = $services->get('Config')['version']; |
||
| 37 | |||
| 38 | $application = new ConsoleApplication( |
||
| 39 | 'TogglJira', |
||
| 40 | $version, |
||
| 41 | $this->readRoutesFromMvc(), |
||
| 42 | Console::getInstance(), |
||
| 43 | new Dispatcher($services) |
||
| 44 | ); |
||
| 45 | |||
| 46 | $application->getExceptionHandler()->setMessageTemplate( |
||
| 47 | file_get_contents($this->locateExceptionHandlerTemplate()) |
||
| 48 | ); |
||
| 49 | |||
| 50 | return $application; |
||
| 51 | } |
||
| 69 |