MobileDetectBundle icon indicating copy to clipboard operation
MobileDetectBundle copied to clipboard

service or alias has been removed or inlined when the container was compiled

Open Alymbek opened this issue 6 years ago • 4 comments

добрый день, уважаемый товарищ @suncat2000 .

в последней версии появляется следующая ошибка:

The "mobile_detect.mobile_detector" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.

для решения которого нужно объявить сервис публичным. ждем обновления кода, заранее спасибо!

Alymbek avatar Dec 25 '18 19:12 Alymbek

@Alymbek hi. please make PR, thanks!

suncat2000 avatar Dec 25 '18 20:12 suncat2000

Temporary quickfix services: mobile_detect.mobile_detector: class: SunCat\MobileDetectBundle\DeviceDetector\MobileDetector public: true

jpvdw86 avatar Jan 28 '19 14:01 jpvdw86

dear @suncat2000 , I can't make PR, because there are no options to merge(or check).

@jpvdw86 , than you!

Alymbek avatar Feb 26 '19 06:02 Alymbek

Temporary quickfix , Symfony 5 version:

    SunCat\MobileDetectBundle\DeviceDetector\MobileDetector:
        class: SunCat\MobileDetectBundle\DeviceDetector\MobileDetector
        public: true

monlouisj avatar Dec 10 '20 20:12 monlouisj