You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was puzzled when first messing around with the toolbar feature to change the current view type, because it would not change the result of $container->get('mobile_detect.mobile_detector')->isMobile()
The text was updated successfully, but these errors were encountered:
The mobile_detect.device_view service is a private service, which causes a deprecation notice because getting private services wil fail in symfony 4. I prefer adding the isMobileView() etc. methods to the mobile_detect.mobile_detector service. It's way more in line with the available Twig Functions.
In Twig it's very easy to do so, just calling is_mobile_view() function, but in PHP you have to get another service to do so, which in turn is private.
Hey,
I was puzzled when first messing around with the toolbar feature to change the current view type, because it would not change the result of
$container->get('mobile_detect.mobile_detector')->isMobile()
The text was updated successfully, but these errors were encountered: