We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5376710 commit 060f043Copy full SHA for 060f043
1 file changed
solid/lib/AppInfo/Application.php
@@ -58,14 +58,14 @@ public function register(IRegistrationContext $context): void {
58
/**
59
* Middleware
60
*/
61
- $container->registerService(SolidCorsMiddleware::class, function(IServerContainer $c): SolidCorsMiddleware{
+ $context->registerService('SolidCorsMiddleware', function($c) {
62
return new SolidCorsMiddleware(
63
$c->get(IRequest::class)
64
);
65
});
66
67
// executed in the order that it is registered
68
- $container->registerMiddleware(SolidCorsMiddleware::class);
+ $context->registerMiddleware('SolidCorsMiddleware');
69
}
70
71
public function boot(IBootContext $context): void {
0 commit comments