Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate this with functional test #2

Open
desarrolla2 opened this issue Jul 1, 2015 · 0 comments
Open

Integrate this with functional test #2

desarrolla2 opened this issue Jul 1, 2015 · 0 comments

Comments

@desarrolla2
Copy link

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'));
            }
        );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant