suncat2000 / MobileDetectBundle

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

You have requested a synthetic service ("request") #98

Open vortexgin opened 8 years ago

vortexgin commented 8 years ago

Dear Admin,

Today i found some bug on your repository when i'm update my dependencies on symfony 2.8. Your argument on mobile_detect.twig.extension service using deprecated service, i have change your repository on my local. Here's the change : `

%mobile_detect.redirect%

`

into

`

%mobile_detect.redirect%

`

Please update your config or change your minimum dependencies.

xabbuh commented 8 years ago

Since this bundle depends on FrameworkBundle 2.4 or higher making use of the request stack instead of injecting the request service looks like a reasonable solution to me.