| @@ 144-160 (lines=17) @@ | ||
| 141 | /** |
|
| 142 | * {@inheritdoc} |
|
| 143 | */ |
|
| 144 | public function resolveLocationRoute() |
|
| 145 | { |
|
| 146 | if (($request = $this->resolveRequest()) === null) { |
|
| 147 | throw new RequestNotFoundException(); |
|
| 148 | } |
|
| 149 | ||
| 150 | $locationRoute = $this->resolveParameter('location_route'); |
|
| 151 | ||
| 152 | if (empty($locationRoute)) { |
|
| 153 | throw new RuntimeException(sprintf( |
|
| 154 | 'The location route could not be found for the route "%s".', |
|
| 155 | $request->attributes->get('_route') |
|
| 156 | )); |
|
| 157 | } |
|
| 158 | ||
| 159 | return $locationRoute; |
|
| 160 | } |
|
| 161 | ||
| 162 | /** |
|
| 163 | * {@inheritdoc} |
|
| @@ 197-213 (lines=17) @@ | ||
| 194 | /** |
|
| 195 | * {@inheritdoc} |
|
| 196 | */ |
|
| 197 | public function resolveRedirectRoute() |
|
| 198 | { |
|
| 199 | if (($request = $this->resolveRequest()) === null) { |
|
| 200 | throw new RequestNotFoundException(); |
|
| 201 | } |
|
| 202 | ||
| 203 | $redirectRoute = $this->resolveParameter('redirect_route'); |
|
| 204 | ||
| 205 | if (empty($redirectRoute)) { |
|
| 206 | throw new RuntimeException(sprintf( |
|
| 207 | 'The redirect route could not be found for the route "%s".', |
|
| 208 | $request->attributes->get('_route') |
|
| 209 | )); |
|
| 210 | } |
|
| 211 | ||
| 212 | return $redirectRoute; |
|
| 213 | } |
|
| 214 | ||
| 215 | /** |
|
| 216 | * {@inheritdoc} |
|
| @@ 280-296 (lines=17) @@ | ||
| 277 | /** |
|
| 278 | * {@inheritdoc} |
|
| 279 | */ |
|
| 280 | public function resolveTemplate() |
|
| 281 | { |
|
| 282 | if (($request = $this->resolveRequest()) === null) { |
|
| 283 | throw new RequestNotFoundException(); |
|
| 284 | } |
|
| 285 | ||
| 286 | $template = $this->resolveParameter('template'); |
|
| 287 | ||
| 288 | if (empty($template)) { |
|
| 289 | throw new RuntimeException(sprintf( |
|
| 290 | 'The template could not be found for the route "%s".', |
|
| 291 | $request->attributes->get('_route') |
|
| 292 | )); |
|
| 293 | } |
|
| 294 | ||
| 295 | return $template; |
|
| 296 | } |
|
| 297 | ||
| 298 | /** |
|
| 299 | * {@inheritdoc} |
|