Skip to content

Integrate this with functional test #2

@desarrolla2

Description

@desarrolla2

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'));
            }
        );

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions