Skip to content

fix: SerializerContextBuilderInterface namespace #2150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 11, 2025
Merged
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
6 changes: 3 additions & 3 deletions core/form-data.md
Original file line number Diff line number Diff line change
@@ -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
@@ -101,9 +101,9 @@ namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use App\State\FormRequestProcessorDecorator;
use ApiPlatform\Core\State\ProcessorInterface;
use ApiPlatform\State\ProcessorInterface;
use ApiPlatform\State\SerializerContextBuilderInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use ApiPlatform\Core\Serializer\SerializerContextBuilderInterface;

class AppServiceProvider extends ServiceProvider
{
4 changes: 2 additions & 2 deletions core/graphql.md
Original file line number Diff line number Diff line change
@@ -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
@@ -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
{
4 changes: 2 additions & 2 deletions core/serialization.md
Original file line number Diff line number Diff line change
@@ -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
{