| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | public function dispatch() |
||
| 45 | { |
||
| 46 | $dispatcher = new RouterDispatcher($this->routerMap); |
||
| 47 | |||
| 48 | /** |
||
| 49 | * TODO 클로저와 일반함수 형태에서도 컨트롤러 이벤트가 작동하도록 수정해야함. |
||
| 50 | */ |
||
| 51 | |||
| 52 | $this->triggerEvent('before'); |
||
| 53 | |||
| 54 | $result = $dispatcher->dispatch($this->request, $this->parameterMap); |
||
| 55 | |||
| 56 | $this->triggerEvent('after'); |
||
| 57 | |||
| 58 | return $result; |
||
| 59 | } |
||
| 60 | |||
| 70 |