File tree 2 files changed +5
-1
lines changed
Bundle/DependencyInjection
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 45
45
use ApiPlatform \Symfony \EventListener \AddTagsListener ;
46
46
use ApiPlatform \Symfony \EventListener \DenyAccessListener ;
47
47
use ApiPlatform \Symfony \GraphQl \Resolver \Factory \DataCollectorResolverFactory ;
48
- use ApiPlatform \Symfony \Validator \Exception \ValidationException ;
48
+ use ApiPlatform \Symfony \Validator \Exception \ValidationException as SymfonyValidationException ;
49
49
use ApiPlatform \Symfony \Validator \Metadata \Property \Restriction \PropertySchemaRestrictionMetadataInterface ;
50
50
use ApiPlatform \Symfony \Validator \ValidationGroupsGeneratorInterface ;
51
+ use ApiPlatform \Validator \Exception \ValidationException ;
51
52
use Doctrine \Persistence \ManagerRegistry ;
52
53
use phpDocumentor \Reflection \DocBlockFactoryInterface ;
53
54
use PHPStan \PhpDocParser \Parser \PhpDocParser ;
@@ -373,6 +374,7 @@ private function getClassNameResources(): array
373
374
{
374
375
return [
375
376
Error::class,
377
+ SymfonyValidationException::class,
376
378
ValidationException::class,
377
379
];
378
380
}
Original file line number Diff line number Diff line change 27
27
* Thrown when a validation error occurs.
28
28
*
29
29
* @author Kévin Dunglas <[email protected] >
30
+ *
31
+ * @deprecated since API Platform 3.3, use {@see BaseValidationException} instead
30
32
*/
31
33
#[ErrorResource(
32
34
uriTemplate: '/validation_errors/{id} ' ,
You can’t perform that action at this time.
0 commit comments