MobileDetectServiceProvider icon indicating copy to clipboard operation
MobileDetectServiceProvider copied to clipboard

Integrate this with functional test

Open desarrolla2 opened this issue 10 years ago • 0 comments

How i must to use this with functional test?

I try diferent things but nothing works, for example:


        $app['app.mobile.detect'] = $app->share(
            function () use ($app) {
               return new \Mobile_Detect([], $app['request_stack']->getCurrentRequest()->headers->get('User-Agent'));
            }
        );

        $app['app.mobile.detect'] = $app->share(
            function () use ($app) {
               return new \Mobile_Detect([], $app['request']->headers->get('User-Agent'));
            }
        );

desarrolla2 avatar Jul 01 '15 10:07 desarrolla2