diff --git a/lib/Symfony/SearchBundle/DependencyInjection/RollerworksSearchExtension.php b/lib/Symfony/SearchBundle/DependencyInjection/RollerworksSearchExtension.php index c1f96c57..cf06cbeb 100644 --- a/lib/Symfony/SearchBundle/DependencyInjection/RollerworksSearchExtension.php +++ b/lib/Symfony/SearchBundle/DependencyInjection/RollerworksSearchExtension.php @@ -13,6 +13,7 @@ namespace Rollerworks\Bundle\SearchBundle\DependencyInjection; +use Rollerworks\Component\Search\Extension\Symfony\Validator\InputValidator; use Rollerworks\Component\Search\Field\FieldType; use Rollerworks\Component\Search\Field\FieldTypeExtension; use Rollerworks\Component\Search\FieldSet; @@ -25,7 +26,6 @@ use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; use Symfony\Component\HttpKernel\DependencyInjection\Extension; use Symfony\Component\Translation\Translator; -use Symfony\Component\Validator\Validator\ValidatorInterface; class RollerworksSearchExtension extends Extension implements PrependExtensionInterface { @@ -65,7 +65,7 @@ public function load(array $configs, ContainerBuilder $container): void $loader->load('elasticsearch.xml'); } - if (interface_exists(ValidatorInterface::class)) { + if (class_exists(InputValidator::class)) { $loader->load('input_validator.xml'); }