-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: patch api-platform/core ValidationException
- Loading branch information
1 parent
97f6a0f
commit d64aa88
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
api/patches/fix(validation)__fix_validation_exception_resource.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Subject: [PATCH] fix(validation): fix validation exception resource | ||
--- | ||
Index: src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php | ||
IDEA additional info: | ||
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | ||
<+>UTF-8 | ||
=================================================================== | ||
diff --git a/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php b/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php | ||
--- a/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php (revision 54638d3ca6d497ff829a6978dd1db9137b5bcf3a) | ||
+++ b/src/Symfony/Bundle/DependencyInjection/ApiPlatformExtension.php (revision b1dad841a7dcc2e1bd13b8d4917a2612c595796e) | ||
@@ -45,9 +45,10 @@ | ||
use ApiPlatform\Symfony\EventListener\AddTagsListener; | ||
use ApiPlatform\Symfony\EventListener\DenyAccessListener; | ||
use ApiPlatform\Symfony\GraphQl\Resolver\Factory\DataCollectorResolverFactory; | ||
-use ApiPlatform\Symfony\Validator\Exception\ValidationException; | ||
+use ApiPlatform\Symfony\Validator\Exception\ValidationException as SymfonyValidationException; | ||
use ApiPlatform\Symfony\Validator\Metadata\Property\Restriction\PropertySchemaRestrictionMetadataInterface; | ||
use ApiPlatform\Symfony\Validator\ValidationGroupsGeneratorInterface; | ||
+use ApiPlatform\Validator\Exception\ValidationException; | ||
use Doctrine\Persistence\ManagerRegistry; | ||
use phpDocumentor\Reflection\DocBlockFactoryInterface; | ||
use PHPStan\PhpDocParser\Parser\PhpDocParser; | ||
@@ -373,6 +374,7 @@ | ||
{ | ||
return [ | ||
Error::class, | ||
+ SymfonyValidationException::class, | ||
ValidationException::class, | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters