We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a666a09 commit 8481aacCopy full SHA for 8481aac
README.md
@@ -182,7 +182,10 @@ $validator = (new \League\OpenAPIValidation\PSR7\ValidatorBuilder)
182
->setCache($cachePool)
183
->getResponseValidator();
184
# or
185
-\League\OpenAPIValidation\PSR15\ValidationMiddleware::fromYamlFile($yamlFile, $cachePool);
+$psr15Middleware = (new \OpenAPIValidation\PSR15\ValidationMiddlewareBuilder)
186
+ ->fromYamlFile($yamlFile)
187
+ ->setCache($cachePool)
188
+ ->getValidationMiddleware();
189
```
190
191
You can use `->setCache($pool, $ttl)` call for both PSR-7 and PSR-15 builder in order to set
0 commit comments