Related to #378
A the package tries to autoloadthe AddressValidator constraint, Symfony throws the following error on container compilation:
Service id "Bazinga\GeocoderBundle\Validator\Constraint\AddressValidator" looks like a FQCN but no corresponding class or interface exists.
This is caused by AddressValidator extending Symfony\Component\Validator\ConstraintValidator, which is not available because symfony/validator is not listed as a requirement in composer.json — only as a dev dependency.
Adding symfony/validator manually resolves the issue:
composer require symfony/validator
Expected behavior: Either add symfony/validator as a proper requirement, or make the AddressValidator registration in config/services.php conditional on the package being available.
Related to #378
A the package tries to autoloadthe
AddressValidatorconstraint, Symfony throws the following error on container compilation:This is caused by
AddressValidatorextendingSymfony\Component\Validator\ConstraintValidator, which is not available becausesymfony/validatoris not listed as a requirement incomposer.json— only as a dev dependency.Adding
symfony/validatormanually resolves the issue:Expected behavior: Either add
symfony/validatoras a proper requirement, or make theAddressValidatorregistration inconfig/services.phpconditional on the package being available.