@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | if (empty($this->configuration)) { |
101 | 101 | |
102 | - $this->configuration = new Configuration( DefaultConfiguration::get() ); |
|
102 | + $this->configuration = new Configuration(DefaultConfiguration::get()); |
|
103 | 103 | |
104 | 104 | } |
105 | 105 | |
@@ -199,9 +199,9 @@ discard block |
||
199 | 199 | |
200 | 200 | $this->logger()->debug("Emitting global dispatcher event."); |
201 | 201 | |
202 | - $this->events()->emit( new DispatcherEvent($this) ); |
|
202 | + $this->events()->emit(new DispatcherEvent($this)); |
|
203 | 203 | |
204 | - if ( $this->configuration()->get('enabled') === false ) { |
|
204 | + if ($this->configuration()->get('enabled') === false) { |
|
205 | 205 | |
206 | 206 | $this->logger()->debug("Dispatcher disabled, shutting down gracefully."); |
207 | 207 | |
@@ -217,11 +217,11 @@ discard block |
||
217 | 217 | |
218 | 218 | } |
219 | 219 | |
220 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.request') ); |
|
220 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.request')); |
|
221 | 221 | |
222 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request()->method()->get()) ); |
|
222 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request()->method()->get())); |
|
223 | 223 | |
224 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.request.#') ); |
|
224 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.request.#')); |
|
225 | 225 | |
226 | 226 | $this->logger()->debug("Starting router."); |
227 | 227 | |
@@ -245,13 +245,13 @@ discard block |
||
245 | 245 | |
246 | 246 | $this->logger()->debug("Route acquired, type $route_type directed to $route_service."); |
247 | 247 | |
248 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.route') ); |
|
248 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.route')); |
|
249 | 249 | |
250 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$route_type) ); |
|
250 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$route_type)); |
|
251 | 251 | |
252 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$route_service) ); |
|
252 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$route_service)); |
|
253 | 253 | |
254 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.route.#') ); |
|
254 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.route.#')); |
|
255 | 255 | |
256 | 256 | // translate route to service |
257 | 257 | |
@@ -307,11 +307,11 @@ discard block |
||
307 | 307 | |
308 | 308 | private function shutdown() { |
309 | 309 | |
310 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.response') ); |
|
310 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.response')); |
|
311 | 311 | |
312 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response()->status()->get()) ); |
|
312 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response()->status()->get())); |
|
313 | 313 | |
314 | - $this->events()->emit( $this->emitServiceSpecializedEvents('dispatcher.response.#') ); |
|
314 | + $this->events()->emit($this->emitServiceSpecializedEvents('dispatcher.response.#')); |
|
315 | 315 | |
316 | 316 | $this->logger()->debug("Composing return value."); |
317 | 317 |