@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | |
63 | 63 | $this->events = new Emitter(); |
64 | 64 | |
65 | - $this->cache = new CacheManager( CacheManager::PICK_FIRST ); |
|
65 | + $this->cache = new CacheManager(CacheManager::PICK_FIRST); |
|
66 | 66 | |
67 | 67 | $this->request = new Request($this->configuration, $this->logger); |
68 | 68 | |
@@ -110,33 +110,33 @@ discard block |
||
110 | 110 | |
111 | 111 | public function dispatch() { |
112 | 112 | |
113 | - $this->events->emit( new DispatcherEvent($this) ); |
|
113 | + $this->events->emit(new DispatcherEvent($this)); |
|
114 | 114 | |
115 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request') ); |
|
115 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request')); |
|
116 | 116 | |
117 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request->method()->get()) ); |
|
117 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request->method()->get())); |
|
118 | 118 | |
119 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request.#') ); |
|
119 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request.#')); |
|
120 | 120 | |
121 | 121 | $this->router->route($this->request); |
122 | 122 | |
123 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route') ); |
|
123 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route')); |
|
124 | 124 | |
125 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->route()->type) ); |
|
125 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->route()->type)); |
|
126 | 126 | |
127 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->route()->service) ); |
|
127 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->route()->service)); |
|
128 | 128 | |
129 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.#') ); |
|
129 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.#')); |
|
130 | 130 | |
131 | 131 | // translate route to service |
132 | 132 | |
133 | 133 | $this->router->compose($this->response); |
134 | 134 | |
135 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response') ); |
|
135 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response')); |
|
136 | 136 | |
137 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response->status()->get()) ); |
|
137 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response->status()->get())); |
|
138 | 138 | |
139 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response.#') ); |
|
139 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response.#')); |
|
140 | 140 | |
141 | 141 | $return = Processor::parse($this->configuration, $this->logger, $this->response); |
142 | 142 |