@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | $this->logger = is_null($logger) ? DispatcherLogger::create($this->configuration) : $logger; |
75 | 75 | |
76 | - $this->cache = is_null($cache) ? new CacheManager( CacheManager::PICK_FIRST, $this->logger ) : $cache; |
|
76 | + $this->cache = is_null($cache) ? new CacheManager(CacheManager::PICK_FIRST, $this->logger) : $cache; |
|
77 | 77 | |
78 | 78 | $this->request = new Request($this->configuration, $this->logger); |
79 | 79 | |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | $this->extra = new Extra($this->logger); |
85 | 85 | |
86 | - $this->router->load( $routing_table ); |
|
86 | + $this->router->load($routing_table); |
|
87 | 87 | |
88 | 88 | } |
89 | 89 | |
@@ -131,33 +131,33 @@ discard block |
||
131 | 131 | |
132 | 132 | public function dispatch() { |
133 | 133 | |
134 | - $this->events->emit( new DispatcherEvent($this) ); |
|
134 | + $this->events->emit(new DispatcherEvent($this)); |
|
135 | 135 | |
136 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request') ); |
|
136 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request')); |
|
137 | 137 | |
138 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request->method()->get()) ); |
|
138 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request.'.$this->request->method()->get())); |
|
139 | 139 | |
140 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.request.#') ); |
|
140 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.request.#')); |
|
141 | 141 | |
142 | 142 | $this->router->route($this->request); |
143 | 143 | |
144 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route') ); |
|
144 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route')); |
|
145 | 145 | |
146 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getType()) ); |
|
146 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getType())); |
|
147 | 147 | |
148 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getService()) ); |
|
148 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.'.$this->router->getService())); |
|
149 | 149 | |
150 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.route.#') ); |
|
150 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.route.#')); |
|
151 | 151 | |
152 | 152 | // translate route to service |
153 | 153 | |
154 | 154 | $this->router->compose($this->response); |
155 | 155 | |
156 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response') ); |
|
156 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response')); |
|
157 | 157 | |
158 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response->status()->get()) ); |
|
158 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response.'.$this->response->status()->get())); |
|
159 | 159 | |
160 | - $this->events->emit( $this->emitServiceSpecializedEvents('dispatcher.response.#') ); |
|
160 | + $this->events->emit($this->emitServiceSpecializedEvents('dispatcher.response.#')); |
|
161 | 161 | |
162 | 162 | $return = Processor::parse($this->configuration, $this->logger, $this->response); |
163 | 163 |