src/Viserio/Component/Config/Provider/ConfigServiceProvider.php
public function getFactories(): array
    {
        return [
            RepositoryContract::class => [self::class, 'createRepository'],
            Repository::class         => static function (ContainerInterface $container) {
                return $container->get(RepositoryContract::class);
            },
            'config' => static function (ContainerInterface $container) {
                return $container->get(RepositoryContract::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            RepositoryContract::class => [self::class, 'createRepository'],
            Repository::class         => static function (ContainerInterface $container) {
                return $container->get(RepositoryContract::class);
            },
            'config' => static function (ContainerInterface $container) {
                return $container->get(RepositoryContract::class);
            },
        ];
    }
{@inheritdoc}