registerMiddleware(ErrorMiddleware::class); $context->registerMiddleware(AuthMiddleware::class); $context->registerMiddleware(ContentTypeMiddleware::class); } /** * This method is called for starting (i.e., booting) the application * * Note: here the method body is empty, since we don't need to do any extra work in it */ public function boot(IBootContext $context): void { } }