| @@ 265-274 (lines=10) @@ | ||
| 262 | * |
|
| 263 | * @throws \Kotori\Exception\NotFoundException |
|
| 264 | */ |
|
| 265 | public function getController() |
|
| 266 | { |
|
| 267 | if (isset($this->uris[0]) && '' !== $this->uris[0]) { |
|
| 268 | $_controller = $this->uris[0]; |
|
| 269 | } else { |
|
| 270 | throw new NotFoundException('Cannot dispatch controller name.'); |
|
| 271 | } |
|
| 272 | ||
| 273 | return strip_tags($_controller); |
|
| 274 | } |
|
| 275 | ||
| 276 | /** |
|
| 277 | * Returns the action name |
|
| @@ 283-292 (lines=10) @@ | ||
| 280 | * |
|
| 281 | * @throws \Kotori\Exception\NotFoundException |
|
| 282 | */ |
|
| 283 | public function getAction() |
|
| 284 | { |
|
| 285 | if (isset($this->uris[1])) { |
|
| 286 | $_action = $this->uris[1]; |
|
| 287 | } else { |
|
| 288 | throw new NotFoundException('Cannot dispatch action name.'); |
|
| 289 | } |
|
| 290 | ||
| 291 | return strip_tags($_action); |
|
| 292 | } |
|
| 293 | ||
| 294 | /** |
|
| 295 | * Returns the request params |
|