@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | { |
13 | 13 | parent::__construct(); |
14 | 14 | $c = $this->getContainer(); |
15 | - $c['errorHandler'] = function($c) { return new WebErrorHandler();}; |
|
15 | + $c['errorHandler'] = function($c) { return new WebErrorHandler(); }; |
|
16 | 16 | $this->add(new AuthMiddleware()); |
17 | 17 | $this->add(new ODataMiddleware()); |
18 | 18 | } |
@@ -24,6 +24,6 @@ discard block |
||
24 | 24 | |
25 | 25 | public function registerAPI($uri, $api) |
26 | 26 | { |
27 | - $this->group($uri, function() use($api) {$api->setup($this);})->add(new \Http\Rest\SerializationMiddleware()); |
|
27 | + $this->group($uri, function() use($api) {$api->setup($this); })->add(new \Http\Rest\SerializationMiddleware()); |
|
28 | 28 | } |
29 | 29 | } |
@@ -12,7 +12,9 @@ discard block |
||
12 | 12 | { |
13 | 13 | parent::__construct(); |
14 | 14 | $c = $this->getContainer(); |
15 | - $c['errorHandler'] = function($c) { return new WebErrorHandler();}; |
|
15 | + $c['errorHandler'] = function($c) |
|
16 | + { |
|
17 | +return new WebErrorHandler();}; |
|
16 | 18 | $this->add(new AuthMiddleware()); |
17 | 19 | $this->add(new ODataMiddleware()); |
18 | 20 | } |
@@ -24,6 +26,8 @@ discard block |
||
24 | 26 | |
25 | 27 | public function registerAPI($uri, $api) |
26 | 28 | { |
27 | - $this->group($uri, function() use($api) {$api->setup($this);})->add(new \Http\Rest\SerializationMiddleware()); |
|
29 | + $this->group($uri, function() use($api) |
|
30 | + { |
|
31 | +$api->setup($this);})->add(new \Http\Rest\SerializationMiddleware()); |
|
28 | 32 | } |
29 | 33 | } |