| Total Complexity | 4 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class ShowExceptionController extends BackendController |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var RuntimeService |
||
| 28 | */ |
||
| 29 | protected $runtimeService; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * This action will be called if an exception was thrown during the building |
||
| 33 | * of the definition. The exception will be displayed, using TYPO3 core |
||
| 34 | * exception handling. |
||
| 35 | * |
||
| 36 | * @throws Throwable |
||
| 37 | */ |
||
| 38 | public function processAction() |
||
| 39 | { |
||
| 40 | $exception = $this->runtimeService->getException(); |
||
| 41 | |||
| 42 | if (!$exception) { |
||
|
|
|||
| 43 | $this->forward('process', 'ShowDefinition'); |
||
| 44 | } |
||
| 45 | |||
| 46 | throw $exception; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @inheritdoc |
||
| 51 | */ |
||
| 52 | protected function getMenu() |
||
| 53 | { |
||
| 54 | return Menu::ADMINISTRATION_DEFINITION; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param RuntimeService $runtimeService |
||
| 59 | */ |
||
| 60 | public function injectRuntimeService(RuntimeService $runtimeService) |
||
| 63 | } |
||
| 64 | } |
||
| 65 |