From fc5844ba135c65cb10493bcc9953e1dceb7dd627 Mon Sep 17 00:00:00 2001 From: Hemal Harindaka Athulathmudali Date: Sat, 28 Nov 2020 22:22:06 +0530 Subject: [PATCH] Linked README to third pary IoC provider usage documentation RE: [https://github.com/typestack/class-validator/issues/607#issuecomment-735253734](https://github.com/typestack/class-validator/issues/607#issuecomment-735253734) --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 5277715dd0..e1b7f411cf 100644 --- a/README.md +++ b/README.md @@ -768,6 +768,8 @@ let validator = Container.get(Validator); // also you can inject classes using constructor injection into your custom ValidatorConstraint-s ``` +For other IoC providers that don't expose a `get(xxx)` function as specified above, you may need to create an IoC adapter using `IocAdapter`. Read more [here](https://github.com/typestack/routing-controllers#using-di-container) + ## Synchronous validation If you want to perform a simple non async validation you can use `validateSync` method instead of regular `validate`