Skip to content

KV igbinary #1055

Answered by butschster
konigbach asked this question in Q&A
Jan 10, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hil @konigbach

To use IgbinarySerializer in spiral framework you just need to rebind a default serializer for KV plugin.

Something like

<?php

declare(strict_types=1);

namespace App\Application\Bootloader;

use Spiral\Boot\Bootloader\Bootloader;
use Spiral\RoadRunner\KeyValue\Serializer\IgbinarySerializer;
use Spiral\RoadRunner\KeyValue\Serializer\SerializerInterface;

final class AppBootloader extends Bootloader
{
    public function defineSingletons(): array
    {
        return [
            SerializerInterface::class => IgbinarySerializer::class,
        ];
    }
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@konigbach
Comment options

@butschster
Comment options

@konigbach
Comment options

Answer selected by konigbach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants