suncat2000 / MobileDetectBundle

Symfony 2/3/4 bundle for detect mobile devices, manage mobile view and redirect to the mobile and tablet version.
397 stars 153 forks source link

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

Open Alymbek opened 5 years ago

Alymbek commented 5 years ago

добрый день, уважаемый товарищ @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.

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

suncat2000 commented 5 years ago

@Alymbek hi. please make PR, thanks!

jpvdw86 commented 5 years ago

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

Alymbek commented 5 years ago

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

@jpvdw86 , than you!

monlouisj commented 3 years ago

Temporary quickfix , Symfony 5 version:

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