Closed crabnky closed 4 years ago
Same problem here. Can be adjusted by changing use of RegistryInterface to ManagerRegistry shown in this upgrade file for doctrine: [https://github.com/doctrine/DoctrineBundle/blob/master/UPGRADE-2.0.md]
Thank you for submitting your issue. It should be fixed with #44
A new release has been created which should fix any issues with Symfony 4.4 and 5
Thanks for this quick support, but unfortenatly it wasn't successful for the CookieConsentController. This error message appears:
Cannot autowire service "ConnectHolland\CookieConsentBundle\Controller\CookieConsentController": argument "$translator" of method "__construct()" references class "Symfony\Component\Translation\Translator" but no such service exists. Try changing the type-hint to one of its parents: interface "Symfony\Component\Translation\TranslatorInterface", or interface "Symfony\Contracts\Translation\TranslatorInterface".
Same here.
PR is open #45
Hello,
I think the last commit breaks compatibility with Symfony 3.4 :
composer require connectholland/cookie-consent-bundle
I tried to add this using composer before reinstalling ch-cookie-consent :
"symfony/translation": "3.4.*"
but same issue as you can see in the image above...
By using the 0.8.2 version, I end in a totally different error (without the last commit, so), but not sure what's the reason :
Did you already encounter it ?
Hello,
I think the last commit breaks compatibility with Symfony 3.4 :
composer require connectholland/cookie-consent-bundle
I tried to add this using composer before reinstalling ch-cookie-consent :
"symfony/translation": "3.4.*"
but same issue as you can see in the image above...
I am also having this same issue... :(
@kaamui @epoplive I've resolved this issue adding to services.yml the relation between TranslatorInterface and its service id:
Symfony\Contracts\Translation\TranslatorInterface: '@translator'
Now Symfony knows which service identifies TranslatorIntercace.
I hope this will help you.
@edezacas it's works thks
Cannot autowire service "ConnectHolland\CookieConsentBundle\Cookie\CookieLogger": argument "$registry" of method "__construct()" references interface "Symfony\Bridge\Doctrine\RegistryInterface" but no such service exists. Try changing the type-hint to "Doctrine\Common\Persistence\ManagerRegistry" instead.
See symfony/symfony#32394