Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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: 2 additions & 2 deletions core/form-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace App\State;
use ApiPlatform\State\ProcessorInterface;
use Symfony\Component\HttpFoundation\Request;
use ApiPlatform\Metadata\Operation;
use ApiPlatform\Serializer\SerializerContextBuilderInterface;
use ApiPlatform\State\SerializerContextBuilderInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;

final class FormRequestProcessorDecorator implements ProcessorInterface
Expand Down Expand Up @@ -102,8 +102,8 @@ namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use App\State\FormRequestProcessorDecorator;
use ApiPlatform\Core\State\ProcessorInterface;
Comment thread
soyuka marked this conversation as resolved.
Outdated
use ApiPlatform\State\SerializerContextBuilderInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use ApiPlatform\Core\Serializer\SerializerContextBuilderInterface;

class AppServiceProvider extends ServiceProvider
{
Expand Down
4 changes: 2 additions & 2 deletions core/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -2750,8 +2750,8 @@ The decorator could be like this:
<?php
namespace App\Serializer;

use ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface;
use App\Entity\Book;
use ApiPlatform\State\SerializerContextBuilderInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;

final class BookContextBuilder implements SerializerContextBuilderInterface
Expand Down Expand Up @@ -2783,8 +2783,8 @@ final class BookContextBuilder implements SerializerContextBuilderInterface
namespace App\Services;

use App\Models\Book;
use ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface;
use Illuminate\Support\Facades\Auth;
use ApiPlatform\State\SerializerContextBuilderInterface;

final class BookContextBuilder implements SerializerContextBuilderInterface
{
Expand Down
4 changes: 2 additions & 2 deletions core/serialization.md
Original file line number Diff line number Diff line change
Expand Up @@ -932,10 +932,10 @@ services:
// api/src/Serializer/BookContextBuilder.php
namespace App\Serializer;

use ApiPlatform\Serializer\SerializerContextBuilderInterface;
use App\ApiResource\Book;
use Symfony\Component\HttpFoundation\Request;
use ApiPlatform\State\SerializerContextBuilderInterface;
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
use App\ApiResource\Book;

final class BookContextBuilder implements SerializerContextBuilderInterface
{
Expand Down