@@ -98,37 +98,37 @@ |
||
| 98 | 98 | |
| 99 | 99 | // Processing |
| 100 | 100 | switch ($routeInfo[0]) { |
| 101 | - case Dispatcher::NOT_FOUND: |
|
| 102 | - $outputProcessor->processResponse($this->getHttpResponse()); |
|
| 103 | - throw new Error404Exception("Route '$uri' not found"); |
|
| 101 | + case Dispatcher::NOT_FOUND: |
|
| 102 | + $outputProcessor->processResponse($this->getHttpResponse()); |
|
| 103 | + throw new Error404Exception("Route '$uri' not found"); |
|
| 104 | 104 | |
| 105 | - case Dispatcher::METHOD_NOT_ALLOWED: |
|
| 106 | - $outputProcessor->processResponse($this->getHttpResponse()); |
|
| 107 | - throw new Error405Exception('Method not allowed'); |
|
| 105 | + case Dispatcher::METHOD_NOT_ALLOWED: |
|
| 106 | + $outputProcessor->processResponse($this->getHttpResponse()); |
|
| 107 | + throw new Error405Exception('Method not allowed'); |
|
| 108 | 108 | |
| 109 | - case Dispatcher::FOUND: |
|
| 110 | - // ... 200 Process: |
|
| 111 | - $vars = array_merge($routeInfo[2], $queryStr); |
|
| 109 | + case Dispatcher::FOUND: |
|
| 110 | + // ... 200 Process: |
|
| 111 | + $vars = array_merge($routeInfo[2], $queryStr); |
|
| 112 | 112 | |
| 113 | - // Get the Selected Route |
|
| 114 | - $selectedRoute = $routeInfo[1]; |
|
| 113 | + // Get the Selected Route |
|
| 114 | + $selectedRoute = $routeInfo[1]; |
|
| 115 | 115 | |
| 116 | - // Class |
|
| 117 | - $class = $selectedRoute["class"]; |
|
| 118 | - $this->getHttpRequest()->appendVars($vars); |
|
| 116 | + // Class |
|
| 117 | + $class = $selectedRoute["class"]; |
|
| 118 | + $this->getHttpRequest()->appendVars($vars); |
|
| 119 | 119 | |
| 120 | - // Get OutputProcessor |
|
| 121 | - $outputProcessor = $this->initializeProcessor( |
|
| 122 | - $selectedRoute["output_processor"] |
|
| 123 | - ); |
|
| 120 | + // Get OutputProcessor |
|
| 121 | + $outputProcessor = $this->initializeProcessor( |
|
| 122 | + $selectedRoute["output_processor"] |
|
| 123 | + ); |
|
| 124 | 124 | |
| 125 | - // Execute the request |
|
| 126 | - $this->executeRequest($outputProcessor, $class); |
|
| 125 | + // Execute the request |
|
| 126 | + $this->executeRequest($outputProcessor, $class); |
|
| 127 | 127 | |
| 128 | - break; |
|
| 128 | + break; |
|
| 129 | 129 | |
| 130 | - default: |
|
| 131 | - throw new Error520Exception('Unknown'); |
|
| 130 | + default: |
|
| 131 | + throw new Error520Exception('Unknown'); |
|
| 132 | 132 | } |
| 133 | 133 | } |
| 134 | 134 | |