Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions api/src/Entity/Bookmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use ApiPlatform\Metadata\GetCollection;
use ApiPlatform\Metadata\Post;
use App\Repository\BookmarkRepository;
use App\Serializer\IriTransformerNormalizer;
use App\State\Processor\BookmarkPersistProcessor;
use App\Validator\UniqueUserBook;
use Doctrine\ORM\Mapping as ORM;
Expand Down Expand Up @@ -45,9 +44,6 @@
normalizationContext: [
AbstractNormalizer::GROUPS => ['Bookmark:read'],
AbstractObjectNormalizer::SKIP_NULL_VALUES => true,
IriTransformerNormalizer::CONTEXT_KEY => [
'book' => '/books/{id}{._format}',
],
],
denormalizationContext: [
AbstractNormalizer::GROUPS => ['Bookmark:write'],
Expand Down
9 changes: 0 additions & 9 deletions api/src/Entity/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use ApiPlatform\State\CreateProvider;
use App\Repository\ReviewRepository;
use App\Security\Voter\OidcTokenPermissionVoter;
use App\Serializer\IriTransformerNormalizer;
use App\State\Processor\ReviewPersistProcessor;
use App\State\Processor\ReviewRemoveProcessor;
use App\Validator\UniqueUserBook;
Expand Down Expand Up @@ -65,10 +64,6 @@
),
],
normalizationContext: [
IriTransformerNormalizer::CONTEXT_KEY => [
'book' => '/admin/books/{id}{._format}',
'user' => '/admin/users/{id}{._format}',
],
AbstractObjectNormalizer::SKIP_NULL_VALUES => true,
AbstractNormalizer::GROUPS => ['Review:read', 'Review:read:admin'],
],
Expand Down Expand Up @@ -134,10 +129,6 @@
),
],
normalizationContext: [
IriTransformerNormalizer::CONTEXT_KEY => [
'book' => '/books/{id}{._format}',
'user' => '/users/{id}{._format}',
],
AbstractObjectNormalizer::SKIP_NULL_VALUES => true,
AbstractNormalizer::GROUPS => ['Review:read'],
],
Expand Down
73 changes: 0 additions & 73 deletions api/src/Serializer/IriTransformerNormalizer.php

This file was deleted.

151 changes: 0 additions & 151 deletions api/tests/Serializer/IriTransformerNormalizerTest.php

This file was deleted.

Loading