Skip to content

Commit 7c89f66

Browse files
fix: replace ApiPlatform\Exception use by ApiPlatform\Metadata\Exception (#6597)
1 parent 130fb5a commit 7c89f66

36 files changed

+46
-48
lines changed

src/Doctrine/Common/State/LinksHandlerTrait.php

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

1414
namespace ApiPlatform\Doctrine\Common\State;
1515

16-
use ApiPlatform\Exception\OperationNotFoundException;
16+
use ApiPlatform\Metadata\Exception\OperationNotFoundException;
1717
use ApiPlatform\Metadata\Exception\RuntimeException;
1818
use ApiPlatform\Metadata\GraphQl\Operation as GraphQlOperation;
1919
use ApiPlatform\Metadata\GraphQl\Query;

src/Doctrine/EventListener/PublishMercureUpdatesListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515

1616
use ApiPlatform\Api\IriConverterInterface as LegacyIriConverterInterface;
1717
use ApiPlatform\Api\ResourceClassResolverInterface as LegacyResourceClassResolverInterface;
18-
use ApiPlatform\Exception\InvalidArgumentException;
19-
use ApiPlatform\Exception\OperationNotFoundException;
20-
use ApiPlatform\Exception\RuntimeException;
2118
use ApiPlatform\GraphQl\Subscription\MercureSubscriptionIriGeneratorInterface as GraphQlMercureSubscriptionIriGeneratorInterface;
2219
use ApiPlatform\GraphQl\Subscription\SubscriptionManagerInterface as GraphQlSubscriptionManagerInterface;
20+
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
21+
use ApiPlatform\Metadata\Exception\OperationNotFoundException;
22+
use ApiPlatform\Metadata\Exception\RuntimeException;
2323
use ApiPlatform\Metadata\HttpOperation;
2424
use ApiPlatform\Metadata\IriConverterInterface;
2525
use ApiPlatform\Metadata\Operation;

src/Doctrine/EventListener/PurgeHttpCacheListener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
use ApiPlatform\Api\IriConverterInterface as LegacyIriConverterInterface;
1717
use ApiPlatform\Api\ResourceClassResolverInterface as LegacyResourceClassResolverInterface;
18-
use ApiPlatform\Exception\InvalidArgumentException;
19-
use ApiPlatform\Exception\OperationNotFoundException;
20-
use ApiPlatform\Exception\RuntimeException;
2118
use ApiPlatform\HttpCache\PurgerInterface;
19+
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
20+
use ApiPlatform\Metadata\Exception\OperationNotFoundException;
21+
use ApiPlatform\Metadata\Exception\RuntimeException;
2222
use ApiPlatform\Metadata\GetCollection;
2323
use ApiPlatform\Metadata\IriConverterInterface;
2424
use ApiPlatform\Metadata\ResourceClassResolverInterface;

src/Doctrine/Odm/State/LinksHandlerTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace ApiPlatform\Doctrine\Odm\State;
1515

1616
use ApiPlatform\Doctrine\Common\State\LinksHandlerTrait as CommonLinksHandlerTrait;
17-
use ApiPlatform\Exception\RuntimeException;
17+
use ApiPlatform\Metadata\Exception\RuntimeException;
1818
use ApiPlatform\Metadata\Link;
1919
use ApiPlatform\Metadata\Operation;
2020
use Doctrine\ODM\MongoDB\Aggregation\Builder;

src/Doctrine/Orm/Extension/FilterEagerLoadingExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use ApiPlatform\Doctrine\Orm\Util\QueryBuilderHelper;
1717
use ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface;
18-
use ApiPlatform\Exception\InvalidArgumentException;
18+
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
1919
use ApiPlatform\Metadata\Operation;
2020
use ApiPlatform\Metadata\ResourceClassResolverInterface;
2121
use Doctrine\ORM\EntityManagerInterface;

src/Doctrine/Orm/Extension/FilterExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use ApiPlatform\Doctrine\Orm\Filter\FilterInterface;
1717
use ApiPlatform\Doctrine\Orm\Filter\OrderFilter;
1818
use ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface;
19-
use ApiPlatform\Exception\InvalidArgumentException;
19+
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
2020
use ApiPlatform\Metadata\Operation;
2121
use Doctrine\ORM\QueryBuilder;
2222
use Psr\Container\ContainerInterface;

src/Doctrine/Orm/Extension/OrderExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use ApiPlatform\Doctrine\Orm\Util\QueryBuilderHelper;
1717
use ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface;
18-
use ApiPlatform\Exception\InvalidArgumentException;
18+
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
1919
use ApiPlatform\Metadata\Operation;
2020
use Doctrine\ORM\QueryBuilder;
2121

src/Doctrine/Orm/Extension/PaginationExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use ApiPlatform\Doctrine\Orm\Paginator;
1818
use ApiPlatform\Doctrine\Orm\Util\QueryChecker;
1919
use ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface;
20-
use ApiPlatform\Exception\InvalidArgumentException;
20+
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
2121
use ApiPlatform\Metadata\Operation;
2222
use ApiPlatform\State\Pagination\Pagination;
2323
use Doctrine\ORM\QueryBuilder;

src/Doctrine/Orm/PropertyHelperTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
use ApiPlatform\Doctrine\Orm\Util\QueryBuilderHelper;
1717
use ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface;
18-
use ApiPlatform\Exception\InvalidArgumentException;
18+
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
1919
use Doctrine\ORM\Mapping\ClassMetadata as ClassMetadataInfo;
2020
use Doctrine\ORM\QueryBuilder;
2121
use Doctrine\Persistence\ManagerRegistry;

src/Hal/Serializer/EntrypointNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
use ApiPlatform\Api\IriConverterInterface as LegacyIriConverterInterface;
1818
use ApiPlatform\Api\UrlGeneratorInterface as LegacyUrlGeneratorInterface;
1919
use ApiPlatform\Documentation\Entrypoint as DocumentationEntrypoint;
20-
use ApiPlatform\Exception\InvalidArgumentException;
2120
use ApiPlatform\Metadata\CollectionOperationInterface;
21+
use ApiPlatform\Metadata\Exception\InvalidArgumentException;
2222
use ApiPlatform\Metadata\IriConverterInterface;
2323
use ApiPlatform\Metadata\Operation;
2424
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;

0 commit comments

Comments
 (0)