| @@ -15,7 +15,6 @@ | ||
| 15 | 15 | |
| 16 | 16 | /** | 
| 17 | 17 | * @param Negotiator $negotiator | 
| 18 | - * @param array $supportedContentTypes | |
| 19 | 18 | */ | 
| 20 | 19 | public function __construct(Negotiator $negotiator) | 
| 21 | 20 |      { | 
| @@ -12,11 +12,11 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | public function register(Container $container) | 
| 14 | 14 |      { | 
| 15 | -        $container['errorHandler.defaultProvider'] = function () use ($container) { | |
| 15 | +        $container['errorHandler.defaultProvider'] = function() use ($container) { | |
| 16 | 16 |              throw new \RuntimeException('Please configure your default provider for error handler!'); | 
| 17 | 17 | }; | 
| 18 | 18 | |
| 19 | -        $container['errorHandler'] = function () use ($container) { | |
| 19 | +        $container['errorHandler'] = function() use ($container) { | |
| 20 | 20 | return new SlimSingleContentTypeErrorHandler($container['errorHandler.defaultProvider']); | 
| 21 | 21 | }; | 
| 22 | 22 | } | 
| @@ -13,23 +13,23 @@ | ||
| 13 | 13 | */ | 
| 14 | 14 | public function register(Container $container) | 
| 15 | 15 |      { | 
| 16 | -        $container['errorHandler.acceptNegation'] = function () use ($container) { | |
| 16 | +        $container['errorHandler.acceptNegation'] = function() use ($container) { | |
| 17 | 17 | return new Negotiator(); | 
| 18 | 18 | }; | 
| 19 | 19 | |
| 20 | -        $container['errorHandler.contentTypeResolver'] = function () use ($container) { | |
| 20 | +        $container['errorHandler.contentTypeResolver'] = function() use ($container) { | |
| 21 | 21 | return new ContentTypeResolver($container['errorHandler.acceptNegation']); | 
| 22 | 22 | }; | 
| 23 | 23 | |
| 24 | -        $container['errorHandler.defaultProvider'] = function () use ($container) { | |
| 24 | +        $container['errorHandler.defaultProvider'] = function() use ($container) { | |
| 25 | 25 |              throw new \RuntimeException('Please configure your default provider for error handler!'); | 
| 26 | 26 | }; | 
| 27 | 27 | |
| 28 | -        $container['errorHandler.providers'] = function () use ($container) { | |
| 28 | +        $container['errorHandler.providers'] = function() use ($container) { | |
| 29 | 29 | return []; | 
| 30 | 30 | }; | 
| 31 | 31 | |
| 32 | -        $container['errorHandler'] = function () use ($container) { | |
| 32 | +        $container['errorHandler'] = function() use ($container) { | |
| 33 | 33 | return new SlimMultiContentTypesErrorHandler( | 
| 34 | 34 | $container['errorHandler.contentTypeResolver'], | 
| 35 | 35 | $container['errorHandler.defaultProvider'], |