src/Viserio/Component/Validation/Provider/SanitizerServiceProvider.php
public static function createSanitizer(ContainerInterface $container): Sanitizer
    {
        $sanitizer = new Sanitizer();
        $sanitizer->setContainer($container);

        return $sanitizer;
    }
public static function createSanitizer(ContainerInterface $container): Sanitizer
    {
        $sanitizer = new Sanitizer();
        $sanitizer->setContainer($container);

        return $sanitizer;
    }
Create a sanitizer instance.

@param \Psr\Container\ContainerInterface $container

@return \Viserio\Component\Validation\Sanitizer