Skip to content

Commit

Permalink
[EasyApiPlatform] Modernize the code (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
itorgov authored Jul 16, 2024
1 parent 3a0c474 commit 29cea6a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;

final class ReadListenerCompilerPass implements CompilerPassInterface
final readonly class ReadListenerCompilerPass implements CompilerPassInterface
{
private const DEFINITION_ID_READ_LISTENER = 'api_platform.listener.request.read';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use EonX\EasyApiPlatform\Paginator\CustomPaginator;
use Symfony\Component\HttpKernel\Event\ViewEvent;

final class HttpKernelViewListener
final readonly class HttpKernelViewListener
{
public function __invoke(ViewEvent $event): void
{
Expand Down
2 changes: 1 addition & 1 deletion packages/EasyApiPlatform/src/Paginator/CustomPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use ApiPlatform\Doctrine\Orm\Paginator;

final class CustomPaginator implements CustomPaginatorInterface
final readonly class CustomPaginator implements CustomPaginatorInterface
{
public function __construct(
private Paginator $decorated,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use EonX\EasyApiPlatform\Paginator\CustomPaginatorInterface;
use Symfony\Component\HttpFoundation\Request;

final class SerializerContextBuilder implements SerializerContextBuilderInterface
final readonly class SerializerContextBuilder implements SerializerContextBuilderInterface
{
public function __construct(
private SerializerContextBuilderInterface $decorated,
Expand Down

0 comments on commit 29cea6a

Please sign in to comment.