| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function resolve(string $value): ?string |
||
| 45 | { |
||
| 46 | $route = GeneralUtility::makeInstance(Typo3Route::class); |
||
| 47 | $id = (string) $route->convert(['resolve' => $value], null); |
||
| 48 | |||
| 49 | if ($this->generate($id) !== $value) { |
||
| 50 | throw new RouteNotFoundException('Wrong realurl segment', 12378); |
||
| 51 | } |
||
| 52 | |||
| 53 | return $id; |
||
| 54 | } |
||
| 55 | } |
||
| 56 |