Skip to content

Commit

Permalink
Merge pull request #3414 from teohhanhui/fix/validator-interface-exce…
Browse files Browse the repository at this point in the history
…ption-type

Fix wrong exception class thrown by ValidatorInterface
  • Loading branch information
soyuka authored Feb 27, 2020
2 parents 706c257 + 8091dd1 commit ef98086
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Validator/EventListener/ValidateListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

namespace ApiPlatform\Core\Validator\EventListener;

use ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException;
use ApiPlatform\Core\Metadata\Resource\Factory\ResourceMetadataFactoryInterface;
use ApiPlatform\Core\Metadata\Resource\ToggleableOperationAttributeTrait;
use ApiPlatform\Core\Util\RequestAttributesExtractor;
use ApiPlatform\Core\Validator\Exception\ValidationException;
use ApiPlatform\Core\Validator\ValidatorInterface;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Event\ViewEvent;
Expand Down
4 changes: 2 additions & 2 deletions src/Validator/ValidatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

namespace ApiPlatform\Core\Validator;

use ApiPlatform\Core\Bridge\Symfony\Validator\Exception\ValidationException;
use ApiPlatform\Core\Validator\Exception\ValidationException;

/**
* Validates an item using the Symfony validator component.
* Validates an item.
*
* @author Kévin Dunglas <[email protected]>
*/
Expand Down

0 comments on commit ef98086

Please sign in to comment.