Skip to content

Commit 4a06b7c

Browse files
committed
RamseyUuid
1 parent e8f2242 commit 4a06b7c

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/Core/Bridge/Symfony/Bundle/Resources/config/ramsey_uuid.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<tag name="api_platform.identifier.denormalizer" priority="-100" />
1010
</service>
1111

12-
<service id="api_platform.serializer.uuid_denormalizer" class="ApiPlatform\Core\Bridge\RamseyUuid\Serializer\UuidDenormalizer" public="false">
12+
<service id="api_platform.serializer.uuid_denormalizer" class="ApiPlatform\RamseyUuid\Serializer\UuidDenormalizer" public="false">
1313
<tag name="serializer.normalizer" />
1414
</service>
1515

src/Core/Bridge/RamseyUuid/Serializer/UuidDenormalizer.php renamed to src/RamseyUuid/Serializer/UuidDenormalizer.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Core\Bridge\RamseyUuid\Serializer;
14+
namespace ApiPlatform\RamseyUuid\Serializer;
1515

1616
use Ramsey\Uuid\Exception\InvalidUuidStringException;
1717
use Ramsey\Uuid\Uuid;

src/deprecation.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@
207207

208208
ApiPlatform\Core\Bridge\Elasticsearch\DataProvider\Paginator::class => ApiPlatform\Elasticsearch\Paginator::class,
209209

210+
// Bridge\RamseyUuid
211+
ApiPlatform\Core\Bridge\RamseyUuid\Serializer\UuidDenormalizer::class => ApiPlatform\RamseyUuid\Serializer\UuidDenormalizer::class,
212+
210213
// Util
211214
ApiPlatform\Core\Util\AnnotationFilterExtractorTrait::class => ApiPlatform\Util\AnnotationFilterExtractorTrait::class,
212215
ApiPlatform\Core\Util\ArrayTrait::class => ApiPlatform\Util\ArrayTrait::class,

tests/Core/Bridge/RamseyUuid/Serializer/UuidDenormalizerTest.php renamed to tests/RamseyUuid/Serializer/UuidDenormalizerTest.php

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

1212
declare(strict_types=1);
1313

14-
namespace ApiPlatform\Core\Tests\Bridge\RamseyUuid\Serializer;
14+
namespace ApiPlatform\Tests\RamseyUuid\Serializer;
1515

16-
use ApiPlatform\Core\Bridge\RamseyUuid\Serializer\UuidDenormalizer;
16+
use ApiPlatform\RamseyUuid\Serializer\UuidDenormalizer;
1717
use PHPUnit\Framework\TestCase;
1818
use Ramsey\Uuid\Uuid;
1919
use Symfony\Component\Serializer\Exception\NotNormalizableValueException;

0 commit comments

Comments
 (0)