rollerworks / PasswordStrengthBundle

Symfony Password strength and blacklisting validator bundle
MIT License
142 stars 26 forks source link

Error: the service must be public as it can be lazy-loaded #84

Closed lionelbzv closed 7 years ago

lionelbzv commented 7 years ago
Q A
Bug report? yes
Feature request? no
BC Break report? yes
RFC? no

I have just updated my libs to the last version of SF2.8 (v2.8.24 to v2.8.25) and PasswordStrengthBundle (v1.6 to v1.7):

PHP Fatal error: Uncaught Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The service "rollerworks\component\passwordstrength\validator\constraints\blacklistvalidator" must be public as it can be lazy-loaded. in /var/www/myproject/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Compiler/AddConstraintValidatorsPass.php:35

If I put the service Rollerworks\Component\PasswordStrength\Validator\Constraints\BlacklistValidator to public="true", it works.

sstok commented 7 years ago

Thanks for reporting, I will take care of it 👍

sstok commented 7 years ago

Fixed in v1.7.1