src/Viserio/Component/Translation/Provider/TranslationServiceProvider.php
public function getFactories(): array
    {
        return [
            MessageFormatterContract::class   => [self::class, 'createMessageFormatter'],
            TranslationManagerContract::class => [self::class, 'createTranslationManager'],
            TranslationManager::class         => static function (ContainerInterface $container) {
                return $container->get(TranslationManagerContract::class);
            },
            TranslatorContract::class => [self::class, 'createTranslator'],
            'translator'              => static function (ContainerInterface $container) {
                return $container->get(TranslatorContract::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            MessageFormatterContract::class   => [self::class, 'createMessageFormatter'],
            TranslationManagerContract::class => [self::class, 'createTranslationManager'],
            TranslationManager::class         => static function (ContainerInterface $container) {
                return $container->get(TranslationManagerContract::class);
            },
            TranslatorContract::class => [self::class, 'createTranslator'],
            'translator'              => static function (ContainerInterface $container) {
                return $container->get(TranslatorContract::class);
            },
        ];
    }
{@inheritdoc}