php-kafka/php-avro-schema-generator

View on GitHub
src/ServiceProvider/MergerServiceProvider.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

namespace PhpKafka\PhpAvroSchemaGenerator\ServiceProvider;

use PhpKafka\PhpAvroSchemaGenerator\Merger\SchemaMerger;
use PhpKafka\PhpAvroSchemaGenerator\Merger\SchemaMergerInterface;
use Pimple\Container;
use Pimple\ServiceProviderInterface;

class MergerServiceProvider implements ServiceProviderInterface
{
    public function register(Container $container): void
    {
        $container[SchemaMergerInterface::class] = static function (): SchemaMergerInterface {
            return new SchemaMerger();
        };
    }
}