src/Viserio/Component/Validation/Provider/ValidationServiceProvider.php
public function getFactories(): array
    {
        return [
            ValidatorContract::class => [self::class, 'createValidator'],
            Validator::class         => static function (ContainerInterface $container) {
                return $container->get(ValidatorContract::class);
            },
            'validator' => static function (ContainerInterface $container) {
                return $container->get(ValidatorContract::class);
            },
        ];
    }
public function getFactories(): array
    {
        return [
            ValidatorContract::class => [self::class, 'createValidator'],
            Validator::class         => static function (ContainerInterface $container) {
                return $container->get(ValidatorContract::class);
            },
            'validator' => static function (ContainerInterface $container) {
                return $container->get(ValidatorContract::class);
            },
        ];
    }
{@inheritdoc}