Skip to content

Commit 63093e3

Browse files
fix: fix deprecations
1 parent 48b509a commit 63093e3

File tree

8 files changed

+10
-13
lines changed

8 files changed

+10
-13
lines changed

api/src/DataFixtures/Factory/BookmarkFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
use Zenstruck\Foundry\ModelFactory;
1010
use Zenstruck\Foundry\Proxy;
1111
use Zenstruck\Foundry\RepositoryProxy;
12-
1312
use function Zenstruck\Foundry\lazy;
1413

1514
/**

api/src/DataFixtures/Factory/ReviewFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Zenstruck\Foundry\ModelFactory;
1111
use Zenstruck\Foundry\Proxy;
1212
use Zenstruck\Foundry\RepositoryProxy;
13-
1413
use function Zenstruck\Foundry\lazy;
1514

1615
/**

api/src/Doctrine/Orm/Filter/NameFilter.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use ApiPlatform\Doctrine\Orm\Filter\AbstractFilter;
88
use ApiPlatform\Doctrine\Orm\PropertyHelperTrait;
99
use ApiPlatform\Doctrine\Orm\Util\QueryNameGeneratorInterface;
10-
use ApiPlatform\Exception\InvalidArgumentException;
1110
use ApiPlatform\Metadata\Operation;
1211
use Doctrine\ORM\QueryBuilder;
1312

@@ -73,7 +72,7 @@ protected function normalizeValues($value, string $property): ?array
7372

7473
if (empty($values)) {
7574
$this->getLogger()->notice('Invalid filter ignored', [
76-
'exception' => new InvalidArgumentException(sprintf('At least one value is required, multiple values should be in "%1$s[]=firstvalue&%1$s[]=secondvalue" format', $property)),
75+
'exception' => new \InvalidArgumentException(sprintf('At least one value is required, multiple values should be in "%1$s[]=firstvalue&%1$s[]=secondvalue" format', $property)),
7776
]);
7877

7978
return null;

api/src/Security/Http/Protection/ResourceResourceHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
namespace App\Security\Http\Protection;
66

7-
use ApiPlatform\Api\UrlGeneratorInterface;
87
use ApiPlatform\Metadata\IriConverterInterface;
98
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
9+
use ApiPlatform\Metadata\UrlGeneratorInterface;
1010
use Symfony\Component\DependencyInjection\Attribute\Autowire;
1111
use Symfony\Component\Security\Core\User\UserInterface;
1212
use Symfony\Contracts\HttpClient\HttpClientInterface;

api/src/Serializer/IriTransformerNormalizer.php

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

55
namespace App\Serializer;
66

7-
use ApiPlatform\Api\IriConverterInterface;
8-
use ApiPlatform\Api\UrlGeneratorInterface;
97
use ApiPlatform\JsonLd\Serializer\ItemNormalizer;
8+
use ApiPlatform\Metadata\IriConverterInterface;
109
use ApiPlatform\Metadata\Operation\Factory\OperationMetadataFactoryInterface;
10+
use ApiPlatform\Metadata\UrlGeneratorInterface;
1111
use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
1212
use Symfony\Component\Serializer\Normalizer\NormalizerAwareTrait;
1313
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

api/src/State/Processor/BookRemoveProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace App\State\Processor;
66

7-
use ApiPlatform\Api\IriConverterInterface;
8-
use ApiPlatform\Api\UrlGeneratorInterface;
97
use ApiPlatform\Doctrine\Common\State\RemoveProcessor;
8+
use ApiPlatform\Metadata\IriConverterInterface;
109
use ApiPlatform\Metadata\Operation;
1110
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
11+
use ApiPlatform\Metadata\UrlGeneratorInterface;
1212
use ApiPlatform\State\ProcessorInterface;
1313
use App\Entity\Book;
1414
use Symfony\Component\DependencyInjection\Attribute\Autowire;

api/src/State/Processor/MercureProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace App\State\Processor;
66

7-
use ApiPlatform\Api\IriConverterInterface;
8-
use ApiPlatform\Api\UrlGeneratorInterface;
97
use ApiPlatform\Metadata\Exception\ResourceClassNotFoundException;
8+
use ApiPlatform\Metadata\IriConverterInterface;
109
use ApiPlatform\Metadata\Operation;
1110
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
11+
use ApiPlatform\Metadata\UrlGeneratorInterface;
1212
use ApiPlatform\State\ProcessorInterface;
1313
use Symfony\Component\DependencyInjection\Attribute\Autowire;
1414
use Symfony\Component\Mercure\Exception\InvalidArgumentException;

api/src/State/Processor/ReviewRemoveProcessor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace App\State\Processor;
66

7-
use ApiPlatform\Api\IriConverterInterface;
8-
use ApiPlatform\Api\UrlGeneratorInterface;
97
use ApiPlatform\Doctrine\Common\State\RemoveProcessor;
8+
use ApiPlatform\Metadata\IriConverterInterface;
109
use ApiPlatform\Metadata\Operation;
1110
use ApiPlatform\Metadata\Resource\Factory\ResourceMetadataCollectionFactoryInterface;
11+
use ApiPlatform\Metadata\UrlGeneratorInterface;
1212
use ApiPlatform\State\ProcessorInterface;
1313
use App\Entity\Review;
1414
use App\Security\Http\Protection\ResourceHandlerInterface;

0 commit comments

Comments
 (0)