Skip to content

Commit ef98086

Browse files
authored
Merge pull request #3414 from teohhanhui/fix/validator-interface-exception-type
Fix wrong exception class thrown by ValidatorInterface
2 parents 706c257 + 8091dd1 commit ef98086

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Validator/EventListener/ValidateListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace ApiPlatform\Core\Validator\EventListener;
1515

16-
use ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException;
1716
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
1817
use ApiPlatform\Core\Metadata\Resource\ToggleableOperationAttributeTrait;
1918
use ApiPlatform\Core\Util\RequestAttributesExtractor;
19+
use ApiPlatform\Core\Validator\Exception\ValidationException;
2020
use ApiPlatform\Core\Validator\ValidatorInterface;
2121
use Symfony\Component\HttpFoundation\Response;
2222
use Symfony\Component\HttpKernel\Event\ViewEvent;

src/Validator/ValidatorInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313

1414
namespace ApiPlatform\Core\Validator;
1515

16-
use ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException;
16+
use ApiPlatform\Core\Validator\Exception\ValidationException;
1717

1818
/**
19-
* Validates an item using the Symfony validator component.
19+
* Validates an item.
2020
*
2121
* @author Kévin Dunglas <[email protected]>
2222
*/

0 commit comments

Comments
 (0)