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

Class issue #3

Open
Keust opened this issue Mar 17, 2020 · 0 comments
Open

Class issue #3

Keust opened this issue Mar 17, 2020 · 0 comments

Comments

@Keust
Copy link

Keust commented Mar 17, 2020

I experience a challenge when running.

If i use literal your example this happens:
Class 'Slim\Http\Request' not found in C:\Users\...\Documents\NewProject\vendor\zguillez\slim-mobile-detect\src\Http\MobileRequest.php on line 7

Also when I try to add the method in a controller (e.g. HomeController). Before the functions I declare the function:

use Slim\Http\MobileRequest as MobileRequest;
class HomeController
{
    public function mobile($request, $response, $args)
    {
        $request = new MobileRequest($request);
    }
}

// Same error: Class 'Slim\Http\Request' not found in C:\Users...\Documents\NewProject\vendor\zguillez\slim-mobile-detect\src\Http\MobileRequest.php on line 7

Could you help me?

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