@@ -81,7 +81,7 @@ |
||
| 81 | 81 | $this->app->bind(ResolverInterface::class, ConstructorResolver::class); |
| 82 | 82 | $this->app->bind(CallableResolverInterface::class, CallableResolver::class); |
| 83 | 83 | $this->app->bind(RequestHandlerInterface::class, $this->app); |
| 84 | - $this->app->bind(EmitterInterface::class, function (ContainerInterface $app) { |
|
| 84 | + $this->app->bind(EmitterInterface::class, function(ContainerInterface $app) { |
|
| 85 | 85 | return new ResponseEmitter( |
| 86 | 86 | $app->get(Config::class)->get('app.response_length', null) |
| 87 | 87 | ); |
@@ -67,11 +67,11 @@ |
||
| 67 | 67 | */ |
| 68 | 68 | public function register(): void |
| 69 | 69 | { |
| 70 | - $this->app->bind(ErrorHandlerInterface::class, function (ContainerInterface $app) { |
|
| 70 | + $this->app->bind(ErrorHandlerInterface::class, function(ContainerInterface $app) { |
|
| 71 | 71 | return new ErrorHandler($app->get(LoggerInterface::class)); |
| 72 | 72 | }); |
| 73 | 73 | |
| 74 | - $this->app->bind(ErrorHandlerMiddleware::class, function (ContainerInterface $app) { |
|
| 74 | + $this->app->bind(ErrorHandlerMiddleware::class, function(ContainerInterface $app) { |
|
| 75 | 75 | return new ErrorHandlerMiddleware( |
| 76 | 76 | $app->get(Config::class)->get('app.debug'), |
| 77 | 77 | $app->get(LoggerInterface::class) |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | */ |
| 67 | 67 | public function register(): void |
| 68 | 68 | { |
| 69 | - $this->app->bind(LoggerInterface::class, function (ContainerInterface $app) { |
|
| 69 | + $this->app->bind(LoggerInterface::class, function(ContainerInterface $app) { |
|
| 70 | 70 | return new Logger( |
| 71 | 71 | new LoggerConfiguration($app->get(Config::class)->get('logging', [])) |
| 72 | 72 | ); |
@@ -148,7 +148,7 @@ |
||
| 148 | 148 | ServerRequestInterface $request, |
| 149 | 149 | RequestHandlerInterface $handler |
| 150 | 150 | ): ResponseInterface { |
| 151 | - set_error_handler(static function (int $severity, string $message, string $file, int $line): bool { |
|
| 151 | + set_error_handler(static function(int $severity, string $message, string $file, int $line): bool { |
|
| 152 | 152 | // https://www.php.net/manual/en/function.error-reporting.php#8866 |
| 153 | 153 | // Usages the defined levels of `error_reporting()`. |
| 154 | 154 | if (!(error_reporting() & $severity)) { |